This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
tec_SG's profile picture

[CC1.65][SMP/SSP] Invalid value in keys["rightCtrl"]

Started by tec_SG, 05 December 2014 - 03:51 PM
tec_SG #1
Posted 05 December 2014 - 04:51 PM
VERSION:

CC1.65

DESCRIPTION:

Incorrect value stored in default keys API
keys["rightCtrl"]=157

EXPECTED RESULT:

keys["rightCtrl"]=153

REPRODUCTION STEPS:

get value of keys["rightCtrl"] or keys.rightCtrl

SCREENSHOT/VIDEO:

On demand
Edited on 10 December 2014 - 07:37 PM
Wojbie #2
Posted 11 December 2015 - 01:09 AM
Funny thing is. When testing this in 1.76pr2 got exactly opposite result. My real world rightCtrl is 157 and keys["rightCtrl"]=153.

Can anyone else test that or did i just did i just Glitch the Matrix?
Edited on 11 December 2015 - 12:29 AM
Bomb Bloke #3
Posted 11 December 2015 - 01:25 AM
At least under 1.75, I'm see your same results, Wojbie.
Wojbie #4
Posted 11 December 2015 - 12:32 PM
Your edit2 solves the problem.
But I just noticed, that the CTRL key on the right side isn't working in both (standard edit and your edit2). Is this the same with the English keyboard layout?

huh; I almost never touch the right-ctrl key, just noticed it's generating a key event with code 157, but keys.rightCtrl is 153. so it doesn't work in for a my standard us keyboard, either.

Found this quote in some older bug report. Could it be keyboard related? Anyways seems like 3 persons having same error is good cause to ask dan200 about it.
Link: https://github.com/dan200/ComputerCraft/issues/33
Edited on 11 December 2015 - 11:32 AM