On Fri, Oct 22, 2010 at 01:51:38AM +0000, Timothy Pruett wrote:
> I'm writing a custom event loop so that agar can work nicely with
> an existing library that hogs the SDL input.  I finally got mouse
> input working, and the keyboard works for the most part, but I see
> no way to get agar to respond to keyboard modifiers.  The specific
> problem is using a textbox and getting capitalized keys.
> Everything comes out lowercase, and I can't see a solution for
> this problem.  AG_KeyboardUpdate only seems to care about the
> keyboard action, keycode, and unicode.  How do I get it to recognize
> the modifiers, so that the shift key will work properly?

Agar should be fed the modifier key events as discrete events.
AG_KeyboardUpdate() will recognize key presses on modifier keys and
update the internal modifier state accordingly.

_______________________________________________
Agar mailing list
[email protected]
http://libagar.org/lists.html

Reply via email to