3

有没有办法以编程方式使 Mac 上的背光键盘变暗?

4

1 回答 1

-1
UInt64 lightInsideGetLEDBrightness()
{
kern_return_t kr = 0;
IOItemCount   scalarInputCount  = 1;
IOItemCount   scalarOutputCount = 1;
UInt64        in_unknown = 0, out_brightness;
//kr = IOConnectMethodScalarIScalarO(dataPort, kGetLEDBrightnessID,
//                                  scalarInputCount, scalarOutputCount, in_unknown, &out_brightness);
kr = IOConnectCallScalarMethod(dataPort, kGetLEDBrightnessID, &in_unknown, scalarInputCount, &out_brightness, &scalarOutputCount);
return out_brightness;
}

它可能会帮助你。

于 2012-05-06T08:55:42.233 回答