Black Majic  [developer] Aug 30, 2013 @ 9:42am
Custom Keybind Workaround
This is a workaround to be used until key bindings are implemented in-game.

Windows:
Open regedit and navigate to
HKEY_CURRENT_USER/Software/Michael Todd Games/Electronic Super Joy

Mac:
In your favourite editor open up (note spaces)
~/Library/Preferences/unity.Michael Todd Games.Electronic Super Joy.plist

Linux:
In your favourite editor, open up (note spaces)
~/.config/unity3d/Michael Todd Games/Electronic Super Joy

On Windows, you will see a list of keys resembling
keys_0_0_h118150785
keys_1_0_h118151808
...

On Mac and Linux, the files look more like XML
<pref name="keys_0_0..." type="int">1</pref>


The naming scheme here is keys_X_Y_hash
where X is the Action bound (list below,) and Y is used for multiple bindings.

If I wanted Jump to be bound to Z and J, I would edit
keys_4_0 and keys_4_1 and change their values to 122 and 106 (getting these numbers from the Key Code list below.)

At this time, I'm not sure if you are able to add additional bindings to keys that do not currently have an _1 or _2, so you may be stuck with only one binding for certain keys (like U/D/L/R)

Action
UP = 0,
DOWN = 1,
LEFT = 2,
RIGHT = 3,
JUMP = 4,
STOMP = 5,
CHECKPOINT = 6, // restart from checkpoint
RESET = 7, // restart from start of level
QUIT = 8, // pause, exit game from title screen
Key Codes
Tab = 9,
Clear = 12,
Return = 13,
Pause = 19,
Escape = 27,
Space = 32,
Exclaim = 33,
DoubleQuote = 34,
Hash = 35,
Dollar = 36,
Ampersand = 38,
Quote = 39,
LeftParen = 40,
RightParen = 41,
Asterisk = 42,
Plus = 43,
Comma = 44,
Minus = 45,
Period = 46,
Slash = 47,
Alpha0 = 48,
Alpha1 = 49,
Alpha2 = 50,
Alpha3 = 51,
Alpha4 = 52,
Alpha5 = 53,
Alpha6 = 54,
Alpha7 = 55,
Alpha8 = 56,
Alpha9 = 57,
Colon = 58,
Semicolon = 59,
Less = 60,
Equals = 61,
Greater = 62,
Question = 63,
At = 64,
LeftBracket = 91,
Backslash = 92,
RightBracket = 93,
Caret = 94,
Underscore = 95,
BackQuote = 96,
A = 97,
B = 98,
C = 99,
D = 100,
E = 101,
F = 102,
G = 103,
H = 104,
I = 105,
J = 106,
K = 107,
L = 108,
M = 109,
N = 110,
O = 111,
P = 112,
Q = 113,
R = 114,
S = 115,
T = 116,
U = 117,
V = 118,
W = 119,
X = 120,
Y = 121,
Z = 122,
Delete = 127,
Keypad0 = 256,
Keypad1 = 257,
Keypad2 = 258,
Keypad3 = 259,
Keypad4 = 260,
Keypad5 = 261,
Keypad6 = 262,
Keypad7 = 263,
Keypad8 = 264,
Keypad9 = 265,
KeypadPeriod = 266,
KeypadDivide = 267,
KeypadMultiply = 268,
KeypadMinus = 269,
KeypadPlus = 270,
KeypadEnter = 271,
KeypadEquals = 272,
UpArrow = 273,
DownArrow = 274,
RightArrow = 275,
LeftArrow = 276,
Insert = 277,
Home = 278,
End = 279,
PageUp = 280,
PageDown = 281,
F1 = 282,
F2 = 283,
F3 = 284,
F4 = 285,
F5 = 286,
F6 = 287,
F7 = 288,
F8 = 289,
F9 = 290,
F10 = 291,
F11 = 292,
F12 = 293,
F13 = 294,
F14 = 295,
F15 = 296,
Numlock = 300,
CapsLock = 301,
ScrollLock = 302,
RightShift = 303,
LeftShift = 304,
RightControl = 305,
LeftControl = 306,
RightAlt = 307,
LeftAlt = 308,
RightApple = 309,
RightCommand = 309,
LeftApple = 310,
LeftCommand = 310,
LeftWindows = 311,
RightWindows = 312,
AltGr = 313,
Help = 315,
Print = 316,
SysReq = 317,
Break = 318,
Menu = 319,
Mouse0 = 323,
Mouse1 = 324,
Mouse2 = 325,
Mouse3 = 326,
Mouse4 = 327,
Mouse5 = 328,
Mouse6 = 329,
JoystickButton0 = 330,
JoystickButton1 = 331,
JoystickButton2 = 332,
JoystickButton3 = 333,
JoystickButton4 = 334,
JoystickButton5 = 335,
JoystickButton6 = 336,
JoystickButton7 = 337,
JoystickButton8 = 338,
JoystickButton9 = 339,
JoystickButton10 = 340,
JoystickButton11 = 341,
JoystickButton12 = 342,
JoystickButton13 = 343,
JoystickButton14 = 344,
JoystickButton15 = 345,
JoystickButton16 = 346,
JoystickButton17 = 347,
JoystickButton18 = 348,
JoystickButton19 = 349
Showing 1-9 of 9 comments
< >
Quirky Twerker Sep 6, 2013 @ 10:56am 
wtf man, why can't you just correct this bug? i cant even find~/Library/Preferences/unity.Michael Todd Games.Electronic Super Joy.plist
NoXPhasma Sep 6, 2013 @ 12:11pm 
Originally posted by WZ Gordon Freeman:
wtf man, why can't you just correct this bug? i cant even find~/Library/Preferences/unity.Michael Todd Games.Electronic Super Joy.plist
Of course you can't, thats why he wrote "(note spaces)", because you have to escape a space on *NIX systems. It's bad that he use spaces in file and foldernames, but I think he's new to *NIX system, otherwise he has avoid it.

I wrote him the space situation on *NIX systems already on another thread. Hope it will be fixed in newer versions.

I don't know how you have to escape the spaces on MAC, but I think it will be the same as on Linux, so you probably have to escape it with \.

For example:
~/Library/Preferences/unity.Michael\ Todd\ Games.Electronic\ Super\ Joy.plist
Tumbolisu Sep 11, 2013 @ 3:01am 
For someone using an european keyboard, this is needed to even be able to play.
(Y and Z buttons are switched.)
Tonick Sep 11, 2013 @ 12:01pm 
on my mac, the .plist looks more like this:
cat ~/Library/Preferences/unity.Michael\ Todd\ Games.Electronic\ Super\ Joy.plist
bplist00?


!"#$%&'()*+,_ Screenmanager Is Fullscreen modeXkeys_5_1Xkeys_8_0Xkeys_6_0Xkeys_4_0Xkeys_5_2Xkeys_2_0_"Screenmanager Press alt to displayXkeys_0_0_Screenmanager Resolution HeightXkeys_6_1Xkeys_8_1_UnityGraphicsQualityXkeys_4_1_NSWindow Frame ScreenSetupXkeys_7_0Xkeys_5_0_Screenmanager Resolution WidthXkeys_4_2Xkeys_3_0X_599 353 482 579 0 0 1680 1028 qxJ7Zclu~??????? /8Abkt}??????????????????????-?
Last edited by Tonick; Sep 11, 2013 @ 12:01pm
no.bureaux Sep 15, 2013 @ 6:06am 
Originally posted by ToNick:
on my mac, the .plist looks more like this:
cat ~/Library/Preferences/unity.Michael\ Todd\ Games.Electronic\ Super\ Joy.plist
bplist00?


!"#$%&'()*+,_ Screenmanager Is Fullscreen modeXkeys_5_1Xkeys_8_0Xkeys_6_0Xkeys_4_0Xkeys_5_2Xkeys_2_0_"Screenmanager Press alt to displayXkeys_0_0_Screenmanager Resolution HeightXkeys_6_1Xkeys_8_1_UnityGraphicsQualityXkeys_4_1_NSWindow Frame ScreenSetupXkeys_7_0Xkeys_5_0_Screenmanager Resolution WidthXkeys_4_2Xkeys_3_0X_599 353 482 579 0 0 1680 1028 qxJ7Zclu~??????? /8Abkt}??????????????????????-?


Same here. Could someone please post the right filename for mac or explain how to make sense of this? That would really help.
prudis Sep 17, 2013 @ 2:25am 
still no news about official solution?
Black Majic  [developer] Sep 17, 2013 @ 4:14pm 
I just finished this feature, and it will be included in the next update (hopefully later this week)
Señor Token Sep 18, 2013 @ 7:07am 
Originally posted by Black Majic:
I just finished this feature, and it will be included in the next update (hopefully later this week)
Excellent!
himmatsj Sep 18, 2013 @ 9:00pm 
Originally posted by Black Majic:
I just finished this feature, and it will be included in the next update (hopefully later this week)

Time for S to jump! :)
Showing 1-9 of 9 comments
< >
Per page: 15 30 50
Date Posted: Aug 30, 2013 @ 9:42am
Posts: 9