Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Changing Button Config In Daphne Singe for American Laser Games  (Read 14801 times)

0 Members and 1 Guest are viewing this topic.

Grimoz

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 111
  • Last login:August 06, 2018, 02:11:22 am
Changing Button Config In Daphne Singe for American Laser Games
« on: September 07, 2011, 06:28:26 am »
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

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 620
  • Last login:June 01, 2025, 11:09:55 pm
  • I am no Jedi
Re: Changing Button Config In Daphne Singe for American Laser Games
« Reply #1 on: September 07, 2011, 03:21:10 pm »
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

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 */

Grimoz

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 111
  • Last login:August 06, 2018, 02:11:22 am
Re: Changing Button Config In Daphne Singe for American Laser Games
« Reply #2 on: September 07, 2011, 06:20:58 pm »
Awesome Dgame i'll give that a try tonight, hopefully Daphne Singe works the same way.

Grimoz

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 111
  • Last login:August 06, 2018, 02:11:22 am
Re: Changing Button Config In Daphne Singe for American Laser Games
« Reply #3 on: September 08, 2011, 06:30:19 pm »
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

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 93
  • Last login:July 22, 2022, 04:58:20 pm
  • I want to build my own arcade controls!
Re: Changing Button Config In Daphne Singe for American Laser Games
« Reply #4 on: April 29, 2012, 05:39:17 pm »
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!