![]() I googled around and found that others have had this problem (aha!) but I did not find any solutions (sigh). Why is KEY_RETURN not equivalent to pressing RETURN on my keyboard? I can complete and execute a unix command by hitting this button, I get a crlf, etc. Using an xterm I can verify that when the user hits the relevant button on my UI panel, I do get a return, i.e. But it does not accept KEY_RETURN from a Leo as "Enter". Now, xev tells me that when I hit the return key I get keycode 44, "Return" - which makes me suspect that the commercial app should also be seeing Return when I hit Return, and it accepts this (from my keyboard) as "Enter". ![]() I write many other key values (many buttons sending keystrokes to the app) using the same syntax, and they all work but for some reason the commercial app does not see KEY_RETURN as "Enter". A button on my hardware UI panel causes the Keyboard/Mouse Leonardo device to do this: case 7: When I examined the source for the Arduino keyboard library, I found a definition for KEY_RETURN. They seem equivalent, at least in the context of the app. On my stock OSX box, the key marked RETURN on the (official apple usb) keyboard works for this, as does the key marked ENTER on the keypad to the right of the main keyboard. ![]() The s'ware I'm interacting with (commercial, unhackable) wants me to "hit Enter" at certain points in order to confirm actions, etc. I have a fairly complicated 2-leo USB controller in late beta - 98% working I would say - but I am stymied by one odd thing. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |