lentinj / tp-compact-keyboard

Fn-Lock switcher for ThinkPad Compact Bluetooth Keyboard with TrackPoint
GNU General Public License v2.0
350 stars 33 forks source link

Can it work on mac os? #33

Closed daimon99 closed 8 years ago

daimon99 commented 8 years ago

Hello,

It is a great program. I am using an iMac. Can it work on imac? or could you help me to get it work? thank you!

lentinj commented 8 years ago

No, it uses the Linux hidraw devices which AFAIK aren't available on OS X.

Looking at this: http://stackoverflow.com/questions/6477385/raw-access-to-hid-devices-in-os-x, a rewrite using hidapi would work: http://www.signal11.us/oss/hidapi/

Looks like it'd be reasonably easy, but not something I'd have interest in.

unknownzerx commented 8 years ago

I am using

lentinj commented 8 years ago

Nice. Added a link to into the README.md here.

If you fancied supporting the USB version have a look at:-

https://github.com/lentinj/tp-compact-keyboard/blob/master/tp-compact-usb-keyboard/tp-compact-usb-keyboard.c

The key differences between supporting USB and bluetooth is the first byte of any command and using hid_send_feature_report() instead of hid_write().