you misspelled those filenames.
why the think hook, btw? can't you just use KeyPress/KeyRelease hooks?
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
Last edited by Snuffy; 07-20-2009 at 10:59 AM.
Mind rape...Don't do it!
---------------Animated Dragon Servers----------------
please come to my friends serversthey are at
AD#1 = 69.243.56.72:27016
AD#2 = 76.122.25.25:27016
its mostly furrys so if u are one then come down, but if u arent then please come too, it sucks being the only non furry in a almost completely furry server.
you misspelled those filenames.
why the think hook, btw? can't you just use KeyPress/KeyRelease hooks?
"It's easy to win forgiveness for being wrong; being right is what gets you into real trouble." - Bjarne Stroustrup
Lífið læðist lúmskt áfram
i don't care about the spelling. And the Key press hook only works for the IN_ keys not the KEY_ keys, witch is the majority of the keyboard.
Mind rape...Don't do it!
---------------Animated Dragon Servers----------------
please come to my friends serversthey are at
AD#1 = 69.243.56.72:27016
AD#2 = 76.122.25.25:27016
its mostly furrys so if u are one then come down, but if u arent then please come too, it sucks being the only non furry in a almost completely furry server.
Last edited by McLovin; 07-18-2009 at 12:31 PM.
Filipe - you never know what ends up in your love hole
Poonage - It's not a disorder, it can be solved
Drunkie - vista was on the trail of complete beauty and perfection
Omicron - cable management is for losers, and people who know what they're doing
Drunkie - me and solece have tickets to go see justin bieber, i'm looking forward to it
JatGoodwin - I don't normally suck dick, but when I do they call me immibis
Drunkie - THERE IS SIMPLY NOT ENOUGH DICKS
JatGoodwin - stand back, im going to do science
i the only thing i copied was the remap but that was just repetitive crap,i also added some to it. and i got the idea of using con commands instead of data streams (witch i still don't understand) from them.
Mind rape...Don't do it!
---------------Animated Dragon Servers----------------
please come to my friends serversthey are at
AD#1 = 69.243.56.72:27016
AD#2 = 76.122.25.25:27016
its mostly furrys so if u are one then come down, but if u arent then please come too, it sucks being the only non furry in a almost completely furry server.
Filipe - you never know what ends up in your love hole
Poonage - It's not a disorder, it can be solved
Drunkie - vista was on the trail of complete beauty and perfection
Omicron - cable management is for losers, and people who know what they're doing
Drunkie - me and solece have tickets to go see justin bieber, i'm looking forward to it
JatGoodwin - I don't normally suck dick, but when I do they call me immibis
Drunkie - THERE IS SIMPLY NOT ENOUGH DICKS
JatGoodwin - stand back, im going to do science
Mind rape...Don't do it!
---------------Animated Dragon Servers----------------
please come to my friends serversthey are at
AD#1 = 69.243.56.72:27016
AD#2 = 76.122.25.25:27016
its mostly furrys so if u are one then come down, but if u arent then please come too, it sucks being the only non furry in a almost completely furry server.
i was thinking of making a runOnKey("S") but i don't know to cause an execution on an e2 from lua.
Mind rape...Don't do it!
---------------Animated Dragon Servers----------------
please come to my friends serversthey are at
AD#1 = 69.243.56.72:27016
AD#2 = 76.122.25.25:27016
its mostly furrys so if u are one then come down, but if u arent then please come too, it sucks being the only non furry in a almost completely furry server.
Bookmarks