1
General / Re: OSX Mavericks - isKeyPressed is broken.
« on: December 27, 2013, 05:41:06 am »
I actually looked into SDL2 (and other frameworks) to see if I could figure out what was different in the keyboard access. I couldn't find anywhere else that used this ultra low level stuff, which is a double-edged sword. I think you're right that it'll result in more precision, but it also means some uncharted territory.
Anyway, using some sample code from https://developer.apple.com/library/Mac/samplecode/HID_Dumper/Introduction/Intro.html#//apple_ref/doc/uid/DTS40008869, I was able to get a bunch of dumped information for each IOHIDElement inside the device. I ran it in both states and compared the output, but I wasn't able to see anything different other than memory addresses (which vary between every run). There still might be something that I'm missing, though.
Dumping the information on the IOHIDDevice requires a bit more work to get it put into SFML, but I'm going to see what (if anything) I can figure out on that front over the next few days.
Anyway, using some sample code from https://developer.apple.com/library/Mac/samplecode/HID_Dumper/Introduction/Intro.html#//apple_ref/doc/uid/DTS40008869, I was able to get a bunch of dumped information for each IOHIDElement inside the device. I ran it in both states and compared the output, but I wasn't able to see anything different other than memory addresses (which vary between every run). There still might be something that I'm missing, though.
Dumping the information on the IOHIDDevice requires a bit more work to get it put into SFML, but I'm going to see what (if anything) I can figure out on that front over the next few days.