|
| 03 Sep 2014 03:17 PM |
Is there any way to differentiate Right-Shift from Slash using KeyPressed and similar events?
In offline mode, Right-Shift returns byte 48 while Slash returns 47. But in online mode, Right-Shift and Slash both return byte 47, and I cannot find a way around this.
Anyone know how to make a script tell the difference? |
|
|
| Report Abuse |
|
|
|
| 03 Sep 2014 03:26 PM |
Bump
It's really annoying that both keys trigger the same event, and I have no way around it. |
|
|
| Report Abuse |
|
|
iiEssence
|
  |
| Joined: 18 Jun 2014 |
| Total Posts: 3467 |
|
|
| 03 Sep 2014 03:28 PM |
| Try if key:bye() == 47 and not key == "/" then |
|
|
| Report Abuse |
|
|
|
| 03 Sep 2014 03:29 PM |
| They both return key:byte(47) and key == "/" |
|
|
| Report Abuse |
|
|
|
| 03 Sep 2014 03:30 PM |
| Well, I butchered that, but they both return the same byte and character. |
|
|
| Report Abuse |
|
|