![]() |
onKeyDown() and keydown(i) in GUIControls
I'm modifying my inventory to work with the keyboard, but I'm running into some problems
Why doesn't this work? PHP Code:
So I'm doing this instead,which works, but can I even use keycodes? Aren't they platform specific? PHP Code:
|
Quote:
|
Quote:
Just forget I said anything. |
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() { |
Quote:
So can I use keycodes or scancodes for special keys like TAB or SPACE? Will they be the same for Windows, Linux and Mac? |
Quote:
|
Script help for 'key*global':
Clientside: keydown2global(int, bool) - returns boolean keydownglobal(int) - returns boolean Script help for 'mouse*global': Clientside: leftmousebuttonglobal - boolean (read only) middlemousebuttonglobal - boolean (read only) mousebuttonsglobal - integer (read only) rightmousebuttonglobal - boolean (read only) |
Quote:
|
oh cooool
|
All times are GMT +2. The time now is 05:25 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.