[Userscript] Remap Your Keys!
After attempting to play Tagpro in the library on my laptop keyboard this afternoon (and growing increasingly frustrated with the laptop arrow keys), I decided that enough was enough, and threw together this quick little script that lets you configure and remap your keys.
#Features#
- Allows you to remap your directional keys
- Remap the buttons for Team/Group/All chat
- Remap the button that displays Team Stats
To get started, install the script using TamperMonkey (or some other Userscript manager), and then configure the appropriate sections.
#Key Notes#
-
Configure the script when installing by editing the values in the "Movement Configuration" section. Just look up the key at the top of the script, and type the name after the " = " sign. Example: You want to use yghj, so you would change it to
var direction_up_key = y; var direction_left_key = g; var direction_down_key = h; var direction_right_key = j; -
The current setting is to override the default keys, so don't be alarmed if your normal wasd/arrow key setup doesn't work. If you'd like to keep the wasd/arrow key setup AND use your custom key mappings, just change the line
var override_default_keys = true;tovar override_default_keys = false; -
The buttons in the Misc category are always overridden, regardless of the boolean value specified in
override_default_keys -
If a key is missing in the list, its either because I forgot to include it, or in the case of
F5, it's designed to reload the game. -
I've only tested this on my laptop for a few rounds, but it seems to run fine.
Here's the Remap Your Keys! script.
If there's any bugs (or feature requests!), let me know in the comments below, and I'll do my best to accommodate them.
#ijklmasterrace
#Changelog# 2015/01/13: Updated script to work on all Maptest servers.
Posted Nov 24, 2014, 12:49 AM UTC · edited
yghj master race