OSX Carbon or Cocoa? For capslock info...
Posted: Sat Jan 28, 2012 11:08 pm
Is the OSX build using Carbon or Cocoa? I don't know exactly what those are, but I gather one or the other tends to be used for building OSX apps.
I ask because I'm looking into making the numeric keypad work properly and respect numlock and capslock settings. I gather most Macs don't actually have numlock keys anymore, but do have capslock. I was able to easily fund a Win32 API function to get the current state of these toggles (and scroll lock) but searching about OSX has been less successful.
I have found one possibility for OSX here which suggests using GetCurrentKeyModifiers() but which appears to require Carbon. There's also this which appears to have alternatives for both... So, I'm wondering if something along these lines would be usable in OISInput.cpp in the GetModKeys function, where I currently have calls to Win32's GetKeyState working as intended.
I ask because I'm looking into making the numeric keypad work properly and respect numlock and capslock settings. I gather most Macs don't actually have numlock keys anymore, but do have capslock. I was able to easily fund a Win32 API function to get the current state of these toggles (and scroll lock) but searching about OSX has been less successful.
I have found one possibility for OSX here which suggests using GetCurrentKeyModifiers() but which appears to require Carbon. There's also this which appears to have alternatives for both... So, I'm wondering if something along these lines would be usable in OISInput.cpp in the GetModKeys function, where I currently have calls to Win32's GetKeyState working as intended.