Mednafen Members Members   Search Search   Help Help   Register Register   Login Login   Home Home
Home » Site » FAQ » Input: How do I configure my joystick/keyboard?
Show: Today's Messages  :: Show Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Input: How do I configure my joystick/keyboard? [message #8] Sun, 28 August 2005 17:07 Go to next message
Administrator  [PM]
https://mednafen.github.io/documentation/#Section_remapping_input

[Updated on: Sat, 04 March 2017 00:48]

Re: Input: How do I configure my joystick/keyboard? [message #946 is a reply to message #8 ] Tue, 02 October 2007 09:02 Go to previous messageGo to next message
zorrobandito  [PM]
"You may either configure any virtual device from the command line"

But you don't say how?

Is it a trigger to accept the inputs or something you can set - like for a MAME cabinet?
Re: Input: How do I configure my joystick/keyboard? [message #947 is a reply to message #8 ] Tue, 02 October 2007 11:29 Go to previous messageGo to next message
Administrator  [PM]
Oh, sorry, I took that feature out quite a few versions back...I think because it didn't work quite right, and it wasn't really necessary.

You can also change the input configuration by manually editing mednafen.cfg after running Mednafen once, but this isn't documented yet...

Example:

;nes, Port 1, Gamepad: A
nes.input.port1.gamepad.a joystick ce96ea6b9d7ca56a 00000001

;nes, Port 1, Gamepad: Rapid A
nes.input.port1.gamepad.rapid_a joystick ce96ea6b9d7ca56a 00000002

;nes, Port 1, Gamepad: B
nes.input.port1.gamepad.b joystick ce96ea6b9d7ca56a 00000000

;nes, Port 1, Gamepad: Rapid B
nes.input.port1.gamepad.rapid_b joystick ce96ea6b9d7ca56a 00000003

;nes, Port 1, Gamepad: SELECT
nes.input.port1.gamepad.select joystick ce96ea6b9d7ca56a 00000008

;nes, Port 1, Gamepad: START
nes.input.port1.gamepad.start joystick ce96ea6b9d7ca56a 00000009

;nes, Port 1, Gamepad: UP ↑
nes.input.port1.gamepad.up joystick ce96ea6b9d7ca56a 0000c001~joystick ce96ea6b9d7ca56a 0000c005

;nes, Port 1, Gamepad: DOWN ↓
nes.input.port1.gamepad.down joystick ce96ea6b9d7ca56a 00008001~joystick ce96ea6b9d7ca56a 00008005

;nes, Port 1, Gamepad: LEFT ←
nes.input.port1.gamepad.left joystick ce96ea6b9d7ca56a 0000c000~joystick ce96ea6b9d7ca56a 0000c004

;nes, Port 1, Gamepad: RIGHT →
nes.input.port1.gamepad.right joystick ce96ea6b9d7ca56a 00008000~joystick ce96ea6b9d7ca56a 00008004


The format is:

keyboard <keynum(decimal)>
joystick <joyid(printed when Mednafen starts up> <buttonnum(hexadecimal)>
mouse <buttonnum(decimal)>

You can determine the regular buttons on your joystick/gamepad by running something like "jstest /dev/input/js0" or "jstest /dev/js0". Axes numbers are logically OR'd against 0x8000. If the axis should be negative to trigger a virtual button press, it is also OR'd against 0x4000.

Keyboard numbers can be found in /usr/include/SDL/SDL_keysym.h

If you wish for more than one physical button to map to a virtual button, put a tilde(~) between the specifications.
Re: Input: How do I configure my joystick/keyboard? [message #948 is a reply to message #947 ] Thu, 04 October 2007 06:22 Go to previous messageGo to next message
zorrobandito  [PM]
Worked perfectly - thanks!

Great emulator!
Re: Input: How do I configure my joystick/keyboard? [message #963 is a reply to message #8 ] Sun, 04 November 2007 07:40 Go to previous messageGo to next message
ZikZak  [PM]
I do not have jstest on my distro.
Is there any other way to configure the gamepad mapping ?
I tired alt-shift-1 but nothing happens, can it be an issue with azerty keyboard ?

Is it possiblt to redefine the alt-shift-port to another keyboard combo ?
Re: Input: How do I configure my joystick/keyboard? [message #987 is a reply to message #963 ] Mon, 19 November 2007 14:27 Go to previous messageGo to next message
ZikZak  [PM]
Where in the source I can change the alt-shift-0 to be a single key on my keyboard ?

Pressing alt+shift+0 or 1 never raises the configuration screen in mednafen.

This is why I'd like to assign those three keys to a single one like F3 or F4.

Can you tell me which line in which file I must change ?
Re: Input: How do I configure my joystick/keyboard? [message #988 is a reply to message #8 ] Tue, 20 November 2007 15:35 Go to previous messageGo to next message
Administrator  [PM]
src/drivers/input.cpp

line 604
Re: Input: How do I configure my joystick/keyboard? [message #990 is a reply to message #988 ] Tue, 20 November 2007 22:49 Go to previous messageGo to next message
ZikZak  [PM]
Thank you.
Here is what I changed:

/*	{ MK_CK_ALT_SHIFT(1), "input_config1", ~0, 0, gettext_noop("Configure buttons on virtual port 1") },
*/
	{ MK_CK(F3), "input_config1", ~0, 0, gettext_noop("Configure buttons on virtual port 1") },


Pressing F3 does not help, I never get any screen to configure my gamepad connected to USB.
I succeeded to configure the button with the help of this thread but I'm stuck with the axis.
Re: Input: How do I configure my joystick/keyboard? [message #1111 is a reply to message #8 ] Sun, 20 January 2008 12:57 Go to previous messageGo to next message
shazow  [PM]
For those interested in saving an hour, here is my PS3 mednafen.cfg for two Sixaxis controllers. Created manually using jstest and some hex converting.

  • Attachment: mednafen.cfg
    (Size: 53.35KB, Downloaded 1663 time(s))

Re: Input: How do I configure my joystick/keyboard? [message #1388 is a reply to message #1111 ] Tue, 16 December 2008 05:24 Go to previous messageGo to next message
waxje  [PM]
Who can help me, i can not figure this out...

jstest /dev/input/js0
Driver version is 2.1.0.
Joystick (HID 1267:a001) has 2 axes (X, Y)
and 10 buttons (Trigger, ThumbBtn, ThumbBtn2, TopBtn, TopBtn2, PinkieBtn, BaseBtn, BaseBtn2, BaseBtn3, BaseBtn4).
Testing ... (interrupt to exit)


up Axes: 0: 0 1:-32767 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:off 7:off 8:off 9:off
down Axes: 0: 0 1: 32767 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:off 7:off 8:off 9:off

left Axes: 0:-32767 1: 0 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:off 7:off 8:off 9:off

right Axes: 0: 32767 1: 0 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:off 7:off 8:off 9:off

1
Axes: 0: 0 1: 0 Buttons: 0:on 1:off 2:off 3:off 4:off 5:off 6:off 7:off 8:off 9:off

2 Axes: 0: 0 1: 0 Buttons: 0:off 1:on 2:off 3:off 4:off 5:off 6:off 7:off 8:off 9:off

3
Axes: 0: 0 1: 0 Buttons: 0:off 1:off 2:on 3:off 4:off 5:off 6:off 7:off 8:off 9:off

4 Axes: 0: 0 1: 0 Buttons: 0:off 1:off 2:off 3:on 4:off 5:off 6:off 7:off 8:off 9:off

select Axes: 0: 0 1: 0 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:off 7:off 8:on 9:off

start Axes: 0: 0 1: 0 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:off 7:off 8:off 9:on

l1
Axes: 0: 0 1: 0 Buttons: 0:off 1:off 2:off 3:off 4:on 5:off 6:off 7:off 8:off 9:off

l2Axes: 0: 0 1: 0 Buttons: 0:off 1:off 2:off 3:off 4:off 5:on 6:off 7:off 8:off 9:off

r1
Axes: 0: 0 1: 0 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:on 7:off 8:off 9:off

r2Axes: 0: 0 1: 0 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:off 7:on 8:off 9:off

Compiled against SDL 1.2.12, running with SDL 1.2.12

Initializing joysticks...
Joystick 0 - HID 1267:a001 - Unique ID: 42190af389429475

Also can not find keyboard settings in /usr/include/SDL/SDL_keysym.h the folder does not even exist.
what i did found out is that when i press ctrl + alt + 1 (with numlock off, the game responds)
so problem 1 = keyboarmapping is not good
problem 2 can not map my joystick and do not understand how to manualy alter the file folowing these directions.
ps i'm using ubuntu 8.10 32 bit and a laptop (azerty)


Re: Input: How do I configure my joystick/keyboard? [message #1615 is a reply to message #8 ] Sun, 10 January 2010 12:39 Go to previous messageGo to next message
spaulding  [PM]
In TurboGfx when I push the UP key for up it says "Configuration Interupted."

I even tried editing the config file with the proper number code, but when I relaunch it via Hyperspin it immediately starts off in keypad config which then gets me back to "Config Int.".



For those out there who dont know where to look, here are the key codes:

/* The keyboard syms have been cleverly chosen to map to ASCII */
SDLK_UNKNOWN = 0,
SDLK_FIRST = 0,
SDLK_BACKSPACE = 8,
SDLK_TAB = 9,
SDLK_CLEAR = 12,
SDLK_RETURN = 13,
SDLK_PAUSE = 19,
SDLK_ESCAPE = 27,
SDLK_SPACE = 32,
SDLK_EXCLAIM = 33,
SDLK_QUOTEDBL = 34,
SDLK_HASH = 35,
SDLK_DOLLAR = 36,
SDLK_AMPERSAND = 38,
SDLK_QUOTE = 39,
SDLK_LEFTPAREN = 40,
SDLK_RIGHTPAREN = 41,
SDLK_ASTERISK = 42,
SDLK_PLUS = 43,
SDLK_COMMA = 44,
SDLK_MINUS = 45,
SDLK_PERIOD = 46,
SDLK_SLASH = 47,
SDLK_0 = 48,
SDLK_1 = 49,
SDLK_2 = 50,
SDLK_3 = 51,
SDLK_4 = 52,
SDLK_5 = 53,
SDLK_6 = 54,
SDLK_7 = 55,
SDLK_8 = 56,
SDLK_9 = 57,
SDLK_COLON = 58,
SDLK_SEMICOLON = 59,
SDLK_LESS = 60,
SDLK_EQUALS = 61,
SDLK_GREATER = 62,
SDLK_QUESTION = 63,
SDLK_AT = 64,
/*
Skip uppercase letters
*/
SDLK_LEFTBRACKET = 91,
SDLK_BACKSLASH = 92,
SDLK_RIGHTBRACKET = 93,
SDLK_CARET = 94,
SDLK_UNDERSCORE = 95,
SDLK_BACKQUOTE = 96,
SDLK_a = 97,
SDLK_b = 98,
SDLK_c = 99,
SDLK_d = 100,
SDLK_e = 101,
SDLK_f = 102,
SDLK_g = 103,
SDLK_h = 104,
SDLK_i = 105,
SDLK_j = 106,
SDLK_k = 107,
SDLK_l = 108,
SDLK_m = 109,
SDLK_n = 110,
SDLK_o = 111,
SDLK_p = 112,
SDLK_q = 113,
SDLK_r = 114,
SDLK_s = 115,
SDLK_t = 116,
SDLK_u = 117,
SDLK_v = 118,
SDLK_w = 119,
SDLK_x = 120,
SDLK_y = 121,
SDLK_z = 122,
SDLK_DELETE = 127,
/* End of ASCII mapped keysyms */

/* International keyboard syms */
SDLK_WORLD_0 = 160, /* 0xA0 */
SDLK_WORLD_1 = 161,
SDLK_WORLD_2 = 162,
SDLK_WORLD_3 = 163,
SDLK_WORLD_4 = 164,
SDLK_WORLD_5 = 165,
SDLK_WORLD_6 = 166,
SDLK_WORLD_7 = 167,
SDLK_WORLD_8 = 168,
SDLK_WORLD_9 = 169,
SDLK_WORLD_10 = 170,
SDLK_WORLD_11 = 171,
SDLK_WORLD_12 = 172,
SDLK_WORLD_13 = 173,
SDLK_WORLD_14 = 174,
SDLK_WORLD_15 = 175,
SDLK_WORLD_16 = 176,
SDLK_WORLD_17 = 177,
SDLK_WORLD_18 = 178,
SDLK_WORLD_19 = 179,
SDLK_WORLD_20 = 180,
SDLK_WORLD_21 = 181,
SDLK_WORLD_22 = 182,
SDLK_WORLD_23 = 183,
SDLK_WORLD_24 = 184,
SDLK_WORLD_25 = 185,
SDLK_WORLD_26 = 186,
SDLK_WORLD_27 = 187,
SDLK_WORLD_28 = 188,
SDLK_WORLD_29 = 189,
SDLK_WORLD_30 = 190,
SDLK_WORLD_31 = 191,
SDLK_WORLD_32 = 192,
SDLK_WORLD_33 = 193,
SDLK_WORLD_34 = 194,
SDLK_WORLD_35 = 195,
SDLK_WORLD_36 = 196,
SDLK_WORLD_37 = 197,
SDLK_WORLD_38 = 198,
SDLK_WORLD_39 = 199,
SDLK_WORLD_40 = 200,
SDLK_WORLD_41 = 201,
SDLK_WORLD_42 = 202,
SDLK_WORLD_43 = 203,
SDLK_WORLD_44 = 204,
SDLK_WORLD_45 = 205,
SDLK_WORLD_46 = 206,
SDLK_WORLD_47 = 207,
SDLK_WORLD_48 = 208,
SDLK_WORLD_49 = 209,
SDLK_WORLD_50 = 210,
SDLK_WORLD_51 = 211,
SDLK_WORLD_52 = 212,
SDLK_WORLD_53 = 213,
SDLK_WORLD_54 = 214,
SDLK_WORLD_55 = 215,
SDLK_WORLD_56 = 216,
SDLK_WORLD_57 = 217,
SDLK_WORLD_58 = 218,
SDLK_WORLD_59 = 219,
SDLK_WORLD_60 = 220,
SDLK_WORLD_61 = 221,
SDLK_WORLD_62 = 222,
SDLK_WORLD_63 = 223,
SDLK_WORLD_64 = 224,
SDLK_WORLD_65 = 225,
SDLK_WORLD_66 = 226,
SDLK_WORLD_67 = 227,
SDLK_WORLD_68 = 228,
SDLK_WORLD_69 = 229,
SDLK_WORLD_70 = 230,
SDLK_WORLD_71 = 231,
SDLK_WORLD_72 = 232,
SDLK_WORLD_73 = 233,
SDLK_WORLD_74 = 234,
SDLK_WORLD_75 = 235,
SDLK_WORLD_76 = 236,
SDLK_WORLD_77 = 237,
SDLK_WORLD_78 = 238,
SDLK_WORLD_79 = 239,
SDLK_WORLD_80 = 240,
SDLK_WORLD_81 = 241,
SDLK_WORLD_82 = 242,
SDLK_WORLD_83 = 243,
SDLK_WORLD_84 = 244,
SDLK_WORLD_85 = 245,
SDLK_WORLD_86 = 246,
SDLK_WORLD_87 = 247,
SDLK_WORLD_88 = 248,
SDLK_WORLD_89 = 249,
SDLK_WORLD_90 = 250,
SDLK_WORLD_91 = 251,
SDLK_WORLD_92 = 252,
SDLK_WORLD_93 = 253,
SDLK_WORLD_94 = 254,
SDLK_WORLD_95 = 255, /* 0xFF */

/* Numeric keypad */
SDLK_KP0 = 256,
SDLK_KP1 = 257,
SDLK_KP2 = 258,
SDLK_KP3 = 259,
SDLK_KP4 = 260,
SDLK_KP5 = 261,
SDLK_KP6 = 262,
SDLK_KP7 = 263,
SDLK_KP8 = 264,
SDLK_KP9 = 265,
SDLK_KP_PERIOD = 266,
SDLK_KP_DIVIDE = 267,
SDLK_KP_MULTIPLY = 268,
SDLK_KP_MINUS = 269,
SDLK_KP_PLUS = 270,
SDLK_KP_ENTER = 271,
SDLK_KP_EQUALS = 272,

/* Arrows + Home/End pad */
SDLK_UP = 273,
SDLK_DOWN = 274,
SDLK_RIGHT = 275,
SDLK_LEFT = 276,
SDLK_INSERT = 277,
SDLK_HOME = 278,
SDLK_END = 279,
SDLK_PAGEUP = 280,
SDLK_PAGEDOWN = 281,

/* Function keys */
SDLK_F1 = 282,
SDLK_F2 = 283,
SDLK_F3 = 284,
SDLK_F4 = 285,
SDLK_F5 = 286,
SDLK_F6 = 287,
SDLK_F7 = 288,
SDLK_F8 = 289,
SDLK_F9 = 290,
SDLK_F10 = 291,
SDLK_F11 = 292,
SDLK_F12 = 293,
SDLK_F13 = 294,
SDLK_F14 = 295,
SDLK_F15 = 296,

/* Key state modifier keys */
SDLK_NUMLOCK = 300,
SDLK_CAPSLOCK = 301,
SDLK_SCROLLOCK = 302,
SDLK_RSHIFT = 303,
SDLK_LSHIFT = 304,
SDLK_RCTRL = 305,
SDLK_LCTRL = 306,
SDLK_RALT = 307,
SDLK_LALT = 308,
SDLK_RMETA = 309,
SDLK_LMETA = 310,
SDLK_LSUPER = 311, /* Left "Windows" key */
SDLK_RSUPER = 312, /* Right "Windows" key */
SDLK_MODE = 313, /* "Alt Gr" key */
SDLK_COMPOSE = 314, /* Multi-key compose key */

/* Miscellaneous function keys */
SDLK_HELP = 315,
SDLK_PRINT = 316,
SDLK_SYSREQ = 317,
SDLK_BREAK = 318,
SDLK_MENU = 319,
SDLK_POWER = 320, /* Power Macintosh power key */
SDLK_EURO = 321, /* Some european keyboards */
SDLK_UNDO = 322,
Re: Input: How do I configure my joystick/keyboard? [message #1858 is a reply to message #1615 ] Thu, 21 October 2010 06:09 Go to previous messageGo to next message
Anyeos  [PM]
Hey! I don't have the ~ key in my keyboard because mine is "spanish international".
Can you please assign a different key for that purpose? I'm tired about all games using that key as if that is in all keyboards. That is a lie.

Because I don't have that key, I cannot change it just pressing F2. The game does not understand what I want to press AltGr + Ñ to generate the ~ (that is what I actually do).

So, can you guys please modify the default fforward key to be another one instead of (~)?

And I cannot simply set my keyboard configuration as english because that key is some special one (like a Ç) that does not work, I don't have that key mapping in any place in my keyboard.

If not when I make programs/games I will use Ñ for some special purposes Razz and you will understand how can that frustrates you Razz

Maybe I can modify xkbd but I don't want! I want to use my spanish keyboard not just make my life more difficult :S

So, I will appreciate if someone change the default key assignment for fforward.

A suggestion: [space]

Anyway, How can I do that for myself without modifying source code? (meanwhile).

Bye
Re: Input: How do I configure my joystick/keyboard? [message #1864 is a reply to message #1858 ] Fri, 22 October 2010 10:11 Go to previous messageGo to next message
AmatCoder  [PM]
Anyeos wrote on Thu, 21 October 2010 07:09

Hey! I don't have the ~ key in my keyboard because mine is "spanish international".
Can you please assign a different key for that purpose?
[...]
A suggestion: [space]

Anyway, How can I do that for myself without modifying source code? (meanwhile).


You can open 'mednafen.cfg' and search:
command.fast_forward keyboard 96


If you change '96' by '32' you can use the space key for 'fast-forward' instead of ~.

Regards.
Re: Input: How do I configure my joystick/keyboard? [message #2082 is a reply to message #8 ] Sun, 20 March 2011 13:32 Go to previous messageGo to next message
akelekeve  [PM]
Hello!
I have a International Keyboard and my keyboard don have a single "~" key, the key ~ is in a [`~] key.
Well, I want to use the fast_forward, but when i use the key [`~], the command don work and even using the [F2] to change the key to do a fast_forward, the key is not recognized as a function key.
I want to ask how to change the key that does a fast_forward function, in linux version.

Ps.: I using the version 0.1.6
PS2.: I used the beta version for windows and even the function fast_forward dont work in [`~] key, i could change the funcion with F2, than pressing the [`~] and selecting a new key, but in linux that doesn't work.
Re: Input: How do I configure my joystick/keyboard? [message #3905 is a reply to message #8 ] Tue, 17 February 2015 18:52 Go to previous messageGo to next message
Ilya Indigo  [PM]
Hello!
Is it possible to set command into two joystick buttons together, for example?
command.load_state joystick 080e4a1ee1ed960b 00000009+joystick 080e4a1ee1ed960b 0000000a
command.save_state joystick 080e4a1ee1ed960b 00000008+joystick 080e4a1ee1ed960b 0000000a

I only responds to single-click the first button.
Re: Input: How do I configure my joystick/keyboard? [message #3931 is a reply to message #3905 ] Sat, 07 March 2015 02:29 Go to previous messageGo to next message
Administrator  [PM]
Like so:
command.load_state /&&\ joystick 080e4a1ee1ed960b 00000009~joystick 080e4a1ee1ed960b 0000000a
command.save_state /&&\ joystick 080e4a1ee1ed960b 00000008~joystick 080e4a1ee1ed960b 0000000a


...or just use SHIFT+F2 instead of F2.
Re: Input: How do I configure my joystick/keyboard? [message #3932 is a reply to message #3931 ] Sat, 07 March 2015 08:01 Go to previous messageGo to next message
Ilya Indigo  [PM]
Administrator wrote on Sat, 07 March 2015 02:29

Like so:
command.load_state /&&\ joystick 080e4a1ee1ed960b 00000009~joystick 080e4a1ee1ed960b 0000000a
command.save_state /&&\ joystick 080e4a1ee1ed960b 00000008~joystick 080e4a1ee1ed960b 0000000a



Thank you, it's work.
But how do I wont add standard keybords key and now I do not get it done.
command.load_state keyboard 289~ /&&\ joystick 080e4a1ee1ed960b 00000009~joystick 080e4a1ee1ed960b 0000000a
command.save_state keyboard 286~ /&&\ joystick 080e4a1ee1ed960b 00000008~joystick 080e4a1ee1ed960b 0000000a
command.toggle_fs keyboard 13+alt~ /&&\ joystick 080e4a1ee1ed960b 0000000b~joystick 080e4a1ee1ed960b 0000000a


So does not work, how do I make such an algorithm?
load: F8 OR (L3 AND Select)
save: F5 OR (L3 AND Start)
fs: (Alt AND Enter) OR (L3 AND R3)

[Updated on: Sat, 07 March 2015 08:21]

Re: Input: How do I configure my joystick/keyboard? [message #3933 is a reply to message #3932 ] Sat, 07 March 2015 20:55 Go to previous messageGo to next message
Administrator  [PM]
That's not currently supported.
Re: Input: How do I configure my joystick/keyboard? [message #5384 is a reply to message #8 ] Sat, 27 January 2018 06:49 Go to previous messageGo to next message
MasterofGaming06  [PM]
you would go into the game, press alt+shift+1 at the same time to configure player 1. press alt+shift+2 to configure player 2. alt+shift+3 to configure player 3.... etc.
Re: Input: How do I configure my joystick/keyboard? [message #6622 is a reply to message #8 ] Fri, 21 January 2022 10:18 Go to previous messageGo to next message
Khael  [PM]
Hi, is there any photosensor option (light/dark) in the emulator setings?
Re: Input: How do I configure my joystick/keyboard? [message #6685 is a reply to message #8 ] Mon, 04 April 2022 12:18 Go to previous messageGo to next message
dingof1  [PM]
Hi all,

I am trying to set up controls for keyboard input.

I can set buttons using keyboard on alt-shift-1, but the problem I am running into is that when I press a keyboard button, it thinks I am typing a command and the input doesn't get read by the game.

Is there anything I can do to solve this problem?
icon9.gif  Re: Input: How do I configure my joystick/keyboard? [message #7017 is a reply to message #8 ] Sun, 18 February 2024 09:40 Go to previous messageGo to next message
radiantor  [PM]
I need combo for exit from mednafen.
Why this code in configuraiton not work and say in terminal "is not an acceptable string"
command.exit /&&\ joystick 0x080e4a1ee1ed960b button_8~joystick 0x080e4a1ee1ed960b button_9

whithout 0x in ID no errors, but combo not work.

PS: mednafen v1.29.0
Re: Input: How do I configure my joystick/keyboard? [message #7018 is a reply to message #7017 ] Sun, 18 February 2024 22:27 Go to previous message
Administrator  [PM]
radiantor wrote on Sun, 18 February 2024 09:40

I need combo for exit from mednafen.
Why this code in configuraiton not work and say in terminal "is not an acceptable string"
command.exit /&&\ joystick 0x080e4a1ee1ed960b button_8~joystick 0x080e4a1ee1ed960b button_9

whithout 0x in ID no errors, but combo not work.

PS: mednafen v1.29.0


The input mapping format changed in Mednafen 1.x. The new format is documented at https://mednafen.github.io/documentation/#Section_input_mapping_format

Example:
command.exit keyboard 0x0 69 || joystick 0x0003046dc21601110006000c00000000 button_8 && joystick 0x0003046dc21601110006000c00000000 button_9

[Updated on: Sun, 18 February 2024 22:30]

  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic:General: Why do I disappear when I get hit in games?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ ]

Current Time: Fri Apr 19 01:44:43 CDT 2024
.:: Contact :: Home ::.

Powered by FUDforum.
Copyright © FUDforum Bulletin Board Software