Thread: Key numbers?
View Single Post
  #14  
Old 08-05-2009, 10:07 PM
WhiteDragon WhiteDragon is offline
Banned
Join Date: Feb 2007
Posts: 1,002
WhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to behold
Quote:
Originally Posted by Mark Sir Link View Post
on another subject, isn't keydown vastly superior since it will work if players choose to remap their keys?
Yes, but it can get problematic when you want to support more keys than Graal lets you control.

Also, it is awkward to have an event-based system when limited by polling for checking the input.

keydown has its merits, but there are definitely cases where you would want to use onKeyPressed or GraalControl.onKeyDown.
Reply With Quote