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

Thread: E2 Keyboard

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

    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 11: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,772

    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
    Wirererer Snuffy is on a distinguished road Snuffy's Avatar
    Join Date
    Jun 2009
    Location
    The Interwebz
    Posts
    138

    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
    Wire Sofaking
    IamMcLovin will become famous soon enough IamMcLovin's Avatar
    Join Date
    Sep 2008
    Posts
    600

    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 IamMcLovin; 07-18-2009 at 01:31 PM.
    Projects:
    - E2 Holograms
    - E2 File Loading
    - E2 HUD Rendering
    - YouTube Player

    Working On:
    - My Radio
    - Zero G
    - GMedia

    <Filipe> you never know what ends up in your love hole
    Poonage - "It's not a disorder, it can be solved"

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

    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 will become famous soon enough Black Phoenix will become famous soon enough Black Phoenix's Avatar
    Join Date
    Feb 2007
    Location
    Kyiv, Ukraine
    Posts
    2,739

    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
    Wire Sofaking
    IamMcLovin will become famous soon enough IamMcLovin's Avatar
    Join Date
    Sep 2008
    Posts
    600

    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 >:|.
    Projects:
    - E2 Holograms
    - E2 File Loading
    - E2 HUD Rendering
    - YouTube Player

    Working On:
    - My Radio
    - Zero G
    - GMedia

    <Filipe> you never know what ends up in your love hole
    Poonage - "It's not a disorder, it can be solved"

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

    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
    Wirererer Snuffy is on a distinguished road Snuffy's Avatar
    Join Date
    Jun 2009
    Location
    The Interwebz
    Posts
    138

    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,180

    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, 10:52 AM
  2. E2 keyboard??
    By oenmaster in forum Expression Help
    Replies: 10
    Last Post: 01-03-2009, 01:57 AM
  3. Keyboard Changes
    By Jaded Misanthrope in forum Ideas & Suggestions
    Replies: 0
    Last Post: 04-26-2008, 12:20 PM
  4. Keyboard
    By Jowel in forum Help & Support
    Replies: 2
    Last Post: 05-04-2007, 11:06 PM
  5. Keyboard app help
    By Seraphis in forum CPU Tutorials & Programs
    Replies: 10
    Last Post: 04-17-2007, 03: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