|
| 13 Mar 2013 10:51 AM |
| Whats the word for "Shift" for the KeyDown method? |
|
|
| Report Abuse |
|
|
| |
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
| |
|
| |
|
|
| 13 Mar 2013 11:06 AM |
Yep.
So that means that holding down the number 0 is the same as holding down shift. I think Alt is 4 and Ctrl is 3... |
|
|
| Report Abuse |
|
|
|
| 13 Mar 2013 11:11 AM |
Sorry, Ctrl is 2.
# is also Caps Lock and any non-letter character whilst Shift is held...
The key bindings are a mess.... |
|
|
| Report Abuse |
|
|
|
| 13 Mar 2013 11:21 AM |
| Oh, and how do you detect 2 keys at the same time? |
|
|
| Report Abuse |
|
|
|
| 13 Mar 2013 11:30 AM |
When a key is pressed down, set its corrosponding id in a table to true, when its released, set it to false.
EG:
keysTable = {}
mouse.KeyDown:connect(function(key) keysTable[key:byte()] = true end)
mouse.KeyUp:connect(function(key) keysTable[key:byte()] = false end) |
|
|
| Report Abuse |
|
|