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 https://forums.kleientertainment.com/forums/topic/68929-add-key/ 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 https://forums.kleientertainment.com/forums/topic/68929-add-key/#findComment-795776 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 https://forums.kleientertainment.com/forums/topic/68929-add-key/#findComment-795856 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 https://forums.kleientertainment.com/forums/topic/68929-add-key/#findComment-795910 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 https://forums.kleientertainment.com/forums/topic/68929-add-key/#findComment-795925 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 https://forums.kleientertainment.com/forums/topic/68929-add-key/#findComment-795944 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now