View Single Post
  #2  
Old 03-27-2011, 11:07 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
wild guess

GraalControl GUI (Which Graal is...) only has the keydown features. You're doing your system wrong if you need to do something like that. Can't you use this:

HTML Code:
function onKeyPressed() {
  if (keydown(0)) this.s_pos = max(0, this.s_pos- 10);
  if (keydown(1)) this.s_pos = max(0, this.s_pos - 1);
  if (keydown(2)) this.s_pos = max(0, this.s_pos + 10);
  if (keydown(3)) this.s_pos = max(0, this.s_pos + 1);
}
Would work I suppose if you had 10 items displayed on each row. Think about it?
__________________
Reply With Quote