Serpens Posted July 18, 2016 Share Posted July 18, 2016 Hi I use a mod which uses the Shift key "GLOBAL.KEY_SHIFT", but I would like to change it to the "<" sign, which is right next to Left Shift at my keyboard. (because Left Shift is already used from the normal game) What is the KEY_ name of this key? I also tried to change in the normal game options the "Force Container (mod)", from Left Shift to "<" , but then there appears "Unknown" as a key, which does not work ingame =/ So is the game even able to use the "<" key? I also found a bug from the game I think, I'm not able to change the key from "Change Box (Half)" in the game options. If I try no keyboard key is accepted and I have to restart the game. Where can I report this bug? Link to comment Share on other sites More sharing options...
modding Posted July 22, 2016 Share Posted July 22, 2016 On 7/18/2016 at 2:37 PM, Serpens said: "<" What is the KEY_ name of this key? constants.lua doesn't define it, pick any name you want. The keycode should be 60. Link to comment Share on other sites More sharing options...
Serpens Posted July 22, 2016 Author Share Posted July 22, 2016 thank you unfortunately it does not work to add this keycode 60 to the mod itself.., the button does not work =/ I tried it with the "Sort Tool" mod and added the line into the modinfo: keyslist[#alpha + #Fkey + 3] = {description = "<",data = 60} (because previous two lines looked like this, so I think this should work: Quote keyslist[#alpha + #Fkey + 1] = {description = "[",data = 91} keyslist[#alpha + #Fkey + 2] = {description = "]",data = 93} Link to comment Share on other sites More sharing options...
DarkXero Posted July 22, 2016 Share Posted July 22, 2016 When I press "<", the game says that the key is 0. Try data = 0. Link to comment Share on other sites More sharing options...
Mobbstar Posted July 22, 2016 Share Posted July 22, 2016 42 minutes ago, DarkXero said: When I press "<", the game says that the key is 0. Try data = 0. are you sure that does not mean "invalid"? Link to comment Share on other sites More sharing options...
DarkXero Posted July 22, 2016 Share Posted July 22, 2016 1 hour ago, Mobbstar said: are you sure that does not mean "invalid"? local function hello() print("hi") end TheInput:AddKeyDownHandler(0, hello) prints "hi" so, if it werks, it werks. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.