Rubygame 3: Unicode support

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

Beoran submitted a comment on #

Thanks, Jacius. Another reason to look forward to Rubygame 3. :)

Have something interesting to add to the discussion? Email your thoughtful comments to comments@rubygame.org.