| Main > Main Forum |
| Changing Button Config In Daphne Singe for American Laser Games |
| (1/1) |
| Grimoz:
Hey, im running my american laser games through daphne singe and its running great but im not going to be able to put it into my cabinet as I dont have a keyboard encoder (im using a xin mo interface) and these versions of the game require button 5 to be pressed for credits and button 1 for player 1 which I dont have, does anyone know if this can be reconfigured to other buttons? |
| dgame:
https://www.daphne-emu.com:9443/mediawiki/index.php/Input#dapinput.ini --- Quote ---dapinput.ini If you want to change Daphne's keyboard input without using DaphneLoader (which is not recommended), then you will need to either edit or create a file called dapinput.ini inside Daphne's home directory. The format of each line the file is as follows: key name = keysym1 keysym2 buttonID The "keysyms" refer to keyboard codes that are defined by the SDL library. The buttonID refers to buttons on a joystick where 0 means no button and 1 is the first button (at least, as far as I can remember haha). A full list of "keysyms" can be found in the KeyList section. An example of a dapinput.ini file is: [KEYBOARD] KEY_UP = 273 114 0 KEY_DOWN = 274 102 0 KEY_LEFT = 276 100 0 KEY_RIGHT = 275 103 0 KEY_BUTTON1 = 306 97 0 KEY_BUTTON2 = 308 115 0 KEY_BUTTON3 = 32 113 0 KEY_START1 = 49 0 0 KEY_START2 = 50 0 0 KEY_COIN1 = 53 0 0 KEY_COIN2 = 54 0 0 KEY_SKILL1 = 304 119 0 KEY_SKILL2 = 122 105 0 KEY_SKILL3 = 120 107 0 KEY_SERVICE = 57 0 0 KEY_TEST = 283 0 0 KEY_RESET = 284 0 0 KEY_SCREENSHOT = 293 0 0 KEY_QUIT = 27 0 0 END --- End quote --- --- Quote ---KeyList From DaphneWiki Jump to: navigation, search These are a list of key codes for use in the dapinput.ini file. These codes come from SDL. NOTE : Keys that require shift to be pressed (like !, @, #, and $ on a US keyboard) cannot be mapped for Daphne because Daphne interprets 'shift' as a its own key rather than a key modifier. These keys are still listed below in case some keyboard out there can do keys like !, @, and # without holding down shift. BACKSPACE = 8 TAB = 9 CLEAR = 12 RETURN = 13 PAUSE = 19 ESCAPE = 27 SPACE = 32 EXCLAIM = 33 QUOTEDBL = 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 0 = 48 1 = 49 2 = 50 3 = 51 4 = 52 5 = 53 6 = 54 7 = 55 8 = 56 9 = 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 KP0 = 256 KP1 = 257 KP2 = 258 KP3 = 259 KP4 = 260 KP5 = 261 KP6 = 262 KP7 = 263 KP8 = 264 KP9 = 265 KP_PERIOD = 266 KP_DIVIDE = 267 KP_MULTIPLY = 268 KP_MINUS = 269 KP_PLUS = 270 KP_ENTER = 271 KP_EQUALS = 272 UP = 273 DOWN = 274 RIGHT = 275 LEFT = 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 SCROLLOCK = 302 RSHIFT = 303 LSHIFT = 304 RCTRL = 305 LCTRL = 306 RALT = 307 LALT = 308 RMETA = 309 LMETA = 310 LSUPER = 311 /* Left "Windows" key */ RSUPER = 312 /* Right "Windows" key */ MODE = 313 /* "Alt Gr" key */ COMPOSE = 314 /* Multi-key compose key */ /* Miscellaneous function keys */ HELP = 315 PRINT = 316 SYSREQ = 317 BREAK = 318 MENU = 319 POWER = 320 /* Power Macintosh power key */ EURO = 321 /* Some european keyboards */ --- End quote --- |
| Grimoz:
Awesome Dgame i'll give that a try tonight, hopefully Daphne Singe works the same way. |
| Grimoz:
Thanks buddy that worked perfectly, now I just have to figure out why my games are opening in the background of Hyperspin.....dammit!!!!!! :dunno |
| evh347:
Thanks dgame, this was exactly what I needed as well. Worked perfectly in Daphne Singe. I was having trouble figuring out the controls for Time Traveler, got it straight with your help! |
| Navigation |
| Message Index |