10 posts
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
724 posts
Location
Kinda lost
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
7083 posts
Location
Tasmania (AU)
Posted 11 December 2015 - 01:25 AM
At least under 1.75, I'm see your same results, Wojbie.
724 posts
Location
Kinda lost
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