Scripts / Arrow Keys by GetInKey() or GetScanCode() ?

Author
Message
kehagiat
10
Years of Service
User Offline
Joined: 16th Jul 2013
Location:
Posted: 22nd Jun 2015 18:52
I know we can get which key is pressed with either GetInKey() or GetScanCode() , but I have not been able to find how to get when arrow keys pressed. Somebody help please?

Also, how about key combinations? In particular, how to get things like [shift]+a, [ctrl]+b etc. ?
Whereof one cannot speak thereof one must be silent
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 22nd Jun 2015 20:59
you can use this as a guide for the scancodes or you can use Prompt(GetScancode()) or Prompt(GetInKey())
there's not really a reliable way to determine multiple (simultaneous) key presses that i know of
life\'s one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11

Attachments

Login to view attachments
kehagiat
10
Years of Service
User Offline
Joined: 16th Jul 2013
Location:
Posted: 22nd Jun 2015 21:57
thanks smallg
Whereof one cannot speak thereof one must be silent

Login to post a reply

Server time is: 2024-05-03 09:23:31
Your offset time is: 2024-05-03 09:23:31