On Tue, 02 Jun 2009 11:46:30 -0700, Gwathlobal <gwathlo...@yandex.ru>
wrote:

> Hi again!
>
> (when (and (sdl:key= key :sdl-key-i) (sdl:modifier= :sdl-key-mod-none))
>   <show inventory>)
>
> Nothing happens when pressing "i". Apparentely (sdl:modifier=  
> :sdl-key-mod-none mod) returns nil.

That is a bug. I'll fix it.

A couple of useful things to know;

- You can use (eq :sdl-key-i key) instead of (sdl:key= :sdl-key-i key)

- :MOD-KEY returns a list of the currently depressed modifiers. So for
example;
(:KEY-DOWN-EVENT (:MOD-KEY MOD-KEY)
      (FORMAT T "Currently depressed modifiers: ~A~%" mod-key))

- Luke
_______________________________________________
application-builder mailing list
application-builder@lispniks.com
http://www.lispniks.com/mailman/listinfo/application-builder

Reply via email to