Julien Nadeau <ve...@...> writes:

> 
> 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.
> 


I'm confused, and possibly stupid it seems.  According to keyboard.h,
AG_KeyboardUpdate() only takes the keyboard, keyboard action, keycode,
and unicode as arguments.  I tried passing the modifier directly to
the drv->kbd->modState both before and after passing the keyboard to
AG_KeyboardUpdate(), with no luck.  How exactly do I get the keyboard
to recognize modifiers, if not through this method?

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

Reply via email to