Rubygame 3: Unicode support
| Published: | Comments: 1 | Filed under: Development
Based on Beoran's suggestion and helpful tip, I've added better Unicode support to keyboard press events in Rubygame 3. The @string attribute for KeyDownEvent contains a UTF8 byte string of the glyph that was generated by the key press (if any).
This should make it much easier to do text entry, especially in non-English languages. Combined with the TTF#render_utf8 method, it should be feasible to create simple GUI text entry and display for many, many languages.
Comments