Hi again!

Same fucntion, different question.
This time I try to execute this

(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.
When using 

(when (and (sdl:key= key :sdl-key-i) (sdl:modifier= :sdl-key-mod-lshift mod))
  <show inventory>)

and pressing "i"+left shift - the inventory shows. The code

(when (and (sdl:key= key :sdl-key-i) (= mod 0))
  <show inventory>)

also works. What's wrong?
_______________________________________________
application-builder mailing list
application-builder@lispniks.com
http://www.lispniks.com/mailman/listinfo/application-builder

Reply via email to