I think someone made e2 keyboard but i remember thinking it had too many functions and not very user friendly,I couldn't find the thread so i made my own e2 extension.
key(S) --just put the key u want to check and it will return 1 or 0(1 being pushed down)
runOnKey("S") -- runs the e2 when key "S" is pressed , if you put "all" then it will run the e2 on all key presses
lastKey() -- will return last key pressed
keyClk(s) -- returns 1 or 0 weather that key ran the e2 (for use with runOnKey(s) )
Example
----Note----Code:runOnKey("G") if(key("G")) { print("HOLY CRAP!!! I PUSHED THE G KEY!!!!") }
OK i updated it so tat uppercase and lower case of all letters and characters work, and i added allot to the remap
Also for special keys like the shift keys look at IN KEYS - GMod Wiki
Just remove the "KEY_".Like for space the wiki says "KEY_SPACE" but you have to get rid of the "KEY_" and just use "SPACE".
If you have any problems or suggestions pls tell me.
keyboard.lua
cl_keyboard.lua


LinkBack URL
About LinkBacks
Mind rape...Don't do it!
they are at 



Reply With Quote







Bookmarks