+ Reply to Thread
Page 1 of 4 1 2 3 ... LastLast
Results 1 to 10 of 37

Thread: E2 Keyboard

  1. #1
    Lurker Snuffy is on a distinguished road Snuffy's Avatar
    Join Date
    Jun 2009
    Location
    The Interwebz
    Posts
    143

    Default E2 Keyboard

    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
    Code:
    runOnKey("G")
    if(key("G"))
    {
        print("HOLY CRAP!!! I PUSHED THE G KEY!!!!")
    }
    
    ----Note----
    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 servers they 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.

  2. #2
    Bug Buster

    TomyLobo has a spectacular aura about TomyLobo has a spectacular aura about TomyLobo's Avatar
    Join Date
    Feb 2009
    Posts
    2,786

    Default Re: E2 Keyboard

    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

  3. #3
    Lurker Snuffy is on a distinguished road Snuffy's Avatar
    Join Date
    Jun 2009
    Location
    The Interwebz
    Posts
    143

    Default Re: E2 Keyboard

    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 servers they 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.

  4. #4
    A Hologram
    McLovin is a jewel in the rough McLovin is a jewel in the rough McLovin is a jewel in the rough McLovin is a jewel in the rough McLovin's Avatar
    Join Date
    Sep 2008
    Location
    NY US
    Posts
    1,029
    Blog Entries
    2

    Default Re: E2 Keyboard

    Quote Originally Posted by Snuffy View Post
    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.
    I don't like using con commands for this kind of thing... They are pretty hacky but I guess thats the only way. :/ Also it looks like you borrowed a lot of code from the gmod_wire_keyboard. 0_0
    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

  5. #5
    Lurker Snuffy is on a distinguished road Snuffy's Avatar
    Join Date
    Jun 2009
    Location
    The Interwebz
    Posts
    143

    Default Re: E2 Keyboard

    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 servers they 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.

  6. #6
    That furred thing
    Black Phoenix has a spectacular aura about Black Phoenix has a spectacular aura about Black Phoenix's Avatar
    Join Date
    Feb 2007
    Location
    Kyiv, Ukraine
    Posts
    3,273

    Default Re: E2 Keyboard

    Quote Originally Posted by Snuffy View Post
    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.
    Wired keyboard uses concommands, doesn't it
    I'm a wire-crazy person with a tail.

    Take a daily journey into my brain

    D2K5


  7. #7
    A Hologram
    McLovin is a jewel in the rough McLovin is a jewel in the rough McLovin is a jewel in the rough McLovin is a jewel in the rough McLovin's Avatar
    Join Date
    Sep 2008
    Location
    NY US
    Posts
    1,029
    Blog Entries
    2

    Default Re: E2 Keyboard

    Quote Originally Posted by Snuffy View Post
    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.
    I already started a version that used datastream to send key buffers >:|.
    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

  8. #8
    Lurker Snuffy is on a distinguished road Snuffy's Avatar
    Join Date
    Jun 2009
    Location
    The Interwebz
    Posts
    143

    Default Re: E2 Keyboard

    Quote Originally Posted by Black Phoenix View Post
    Wired keyboard uses concommands, doesn't it
    yes, tats why i said i got the idea to use con commands from it
    Mind rape...Don't do it!

    ---------------Animated Dragon Servers----------------
    please come to my friends servers they 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.

  9. #9
    Lurker Snuffy is on a distinguished road Snuffy's Avatar
    Join Date
    Jun 2009
    Location
    The Interwebz
    Posts
    143

    Default Re: E2 Keyboard

    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 servers they 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.

  10. #10
    Expressionism 2.0

    Syranide has disabled reputation Syranide's Avatar
    Join Date
    Mar 2007
    Location
    Sweden
    Posts
    4,504

    Default Re: E2 Keyboard

    Quote Originally Posted by Black Phoenix View Post
    Wired keyboard uses concommands, doesn't it
    Also concommands = datastream.
    It's the same thing, datastream is just another layer on-top.

+ Reply to Thread
Page 1 of 4 1 2 3 ... LastLast

Similar Threads

  1. Sit-In Keyboard
    By Beowulf in forum Ideas & Suggestions
    Replies: 43
    Last Post: 04-17-2009, 09:52 AM
  2. E2 keyboard??
    By oenmaster in forum Expression 1 & 2
    Replies: 10
    Last Post: 01-03-2009, 12:57 AM
  3. Keyboard Changes
    By Jaded Misanthrope in forum Ideas & Suggestions
    Replies: 0
    Last Post: 04-26-2008, 11:20 AM
  4. Keyboard
    By Jowel in forum Technical Support
    Replies: 2
    Last Post: 05-04-2007, 10:06 PM
  5. Keyboard app help
    By Seraphis in forum CPU, GPU, and Hi-speed
    Replies: 10
    Last Post: 04-17-2007, 02:31 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots