mirror of https://github.com/stella-emu/stella.git
0d41f9dc5c
Added 'leftport' and 'rightport' commandline arguments, which specify which SDL joystick devices to use for each port. These arguments are basically indices into the internal SDL joystick array. Joystick handling has changed somewhat, in that there are now only ever two joysticks used by Stella (J0 - left and J1 - right). The port arguments serve to specify which stick is J0, and which is J1. This means the tie between SDL enumeration of joysticks is broken, and (for example) a Stelladaptor which has SDL index of 1 (second stick found) can emulate the left 2600 port, and an SDL joystick 0 can emulate the right 2600 port. This fixes a long-standing bug whereby the only way to break SDL joystick enumeration was to remap all associated events in the Event Mapper. Still TODO is add joystick hat/ball detection to the event handler, and allow those events to be remapped (perhaps to emulate the paddles). Also TODO is add a GUI for selecting the joystick ports from a list of SDL joysticks. git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@872 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba |
||
---|---|---|
CVSROOT | ||
stella |