GetChar() + backspace = Bug?
Monkey Forums/Monkey Programming/GetChar() + backspace = Bug?
| ||
The documentation says that GetChar() returns the character code of the next character in the keyboard character queue, or 0 if no more characters are available. I've stumbled over a bug, well at least I think it is a bug. With every other printable and non printable char GetChar() return keyboard character repetitive as long as I hold down the key. Surprisingly this does not work with the backspace key (key code 8). It just return 8 once, and then repetitive 0. I'm on a Mac. EDIT: Same for the enter button. |
| ||
The bug you're referring to came with the GLFW3 target (Which I assume you're using). I posted about this, here. I also posted a full example, which will have problems with GLFW2, but not GLFW3. I guess Mark never saw my bug post, so I should probably bump it. I'm on Windows 8.1 (x64), and I also have the problem, by the way. |
| ||
Oops, I guess I'm not better than Mark :). I have also not seen your post. Thanks for bumping your post :D. For me this is not a small bug. It can result in a very bad user experience. |