duane/sketch — Issue #3: Implement key events
Author: duane
Created: 2011-10-17 17:39:05+00:00
State: open

Implement `keyPressed()` and `keyReleased()`, not to mention `key` and `keyCode`. This is much trickier than it looks, actually, because unicode has to be handled in a language that provides one (unreliable) unicode feature: `wchar_t` and wide strings. The implementation is compiler based, however, and therefore unreliable.

The end implementation will probably store a single UTF-32 character that can be compared to a wide character literal: ex:

uint32_t emDash = L'—';
if (unicodeKey == emDash)
//Typography
....