I'm trying to remap the "d" key...not sure whats going on
Posted: Wed Feb 21, 2018 1:14 am
Hey, I wanted to add WASD to the navigation keymaps, I figured it would be easy using this:
I remapped the developer key and screenshot keys to avoid any overlap, and W,A,and S all worked perfectly, but for some reason the D key just refuses to work :/ I also tried setting {config.developer = False} but the D key still doesn't work... any ideas? Not really sure what I should doing differently?
Code: Select all
config.keymap["input_left"] = [ 'K_LEFT', 'repeat_K_LEFT', 'a']
config.keymap["input_right"] = [ 'K_RIGHT', 'repeat_K_RIGHT', 'd']
config.keymap["input_up"] = [ 'K_UP', 'repeat_K_UP', 'w']
config.keymap["input_down"] = [ 'K_DOWN', 'repeat_K_DOWN', 's']
config.keymap["viewport_leftarrow"] = [ 'K_LEFT', 'repeat_K_LEFT', 'a']
config.keymap["viewport_rightarrow"] = [ 'K_RIGHT', 'repeat_K_RIGHT', 'd']
config.keymap["viewport_uparrow"] = [ 'K_UP', 'repeat_K_UP', 'w']
config.keymap["viewport_downarrow"] = [ 'K_DOWN', 'repeat_K_DOWN', 's']
config.keymap["focus_left"] = [ 'K_LEFT', 'repeat_K_LEFT' , 'a']
config.keymap["focus_right"] = [ 'K_RIGHT', 'repeat_K_RIGHT' , 'd']
config.keymap["focus_up"] = [ 'K_UP', 'repeat_K_UP' , 'w']
config.keymap["focus_down"] = [ 'K_DOWN', 'repeat_K_DOWN' , 's']