From: David V. <da...@op...> - 2005-11-14 21:09:51
|
Hi Stephen, I want to include paddle support into the PSP port, is there something generic i can reuse ? I remember that we talked sometime ago about the paddle support, i thought you wanted to do something about, isn't it ? Please let me know what's the way to include paddle support into the psp port. Greetz David -- David Voswinkel ______________________ da...@op... www.optixx.org |
From: Kostas N. <kn...@ph...> - 2005-11-15 16:16:19
|
Hi David, > I want to include paddle support into the PSP port, is there something > generic i can reuse ? I'm going to be supporting paddles in the wince version either through mouse emulation (generating a mousemove event along with a keyboard event each time the directional keys are used) and handing it to the EventHandler, or by writing directly to the emulator core (I think SetEvent or sth like that). I haven't got around to coding it just yet. If Steve decides to emulate paddles in the EventHandler (a la JoyMouse), we both may be spared from coding this. Regards, Kostas |
From: David V. <da...@op...> - 2005-11-15 16:39:29
|
Ok, thanks for the info. Some silly question, how to i notice that paddle support is needed ? Do roms request paddle support or is it user interaction to swicth to paddle mode. If so i would need a handy hot key for it. Regards David > > I want to include paddle support into the PSP port, is there something > > generic i can reuse ? > > I'm going to be supporting paddles in the wince version either through > mouse emulation (generating a mousemove event along with a keyboard > event each time the directional keys are used) and handing it to the > EventHandler, or by writing directly to the emulator core (I think > SetEvent or sth like that). I haven't got around to coding it just yet. > If Steve decides to emulate paddles in the EventHandler (a la JoyMouse), > we both may be spared from coding this. > > Regards, > Kostas > > > ------------------------------------------------------- > This SF.Net email is sponsored by the JBoss Inc. Get Certified Today > Register for a JBoss Training Course. Free Certification Exam > for All Training Attendees Through End of 2005. For more info visit: > http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click > _______________________________________________ > Stella-devel mailing list > Ste...@li... > https://lists.sourceforge.net/lists/listinfo/stella-devel -- David Voswinkel ______________________ da...@op... www.optixx.org |
From: B. W. <ur...@ha...> - 2005-11-15 16:50:17
|
On Tue, 15 Nov 2005, David Voswinkel wrote: > > > Ok, thanks for the info. Some silly question, how to i notice that paddle > support is needed ? Do roms request paddle support or is it user interaction > to swicth to paddle mode. If so i would need a handy hot key for it. Neither... it's given in the stella.pro file. You can check the "Controller.Left" property like so: if(myConsole.properties().get("Controller.Left") == "Paddles") { // set up paddle keymap here... } Hope that helps... -- B. |
From: Stephen A. <ste...@cs...> - 2005-11-15 17:33:56
|
On November 15, 2005 01:09 pm, David Voswinkel wrote: > > > I want to include paddle support into the PSP port, is there > > > something generic i can reuse ? > > > > I'm going to be supporting paddles in the wince version either > > through mouse emulation (generating a mousemove event along with a > > keyboard event each time the directional keys are used) and handing > > it to the EventHandler, or by writing directly to the emulator core > > (I think SetEvent or sth like that). I haven't got around to coding > > it just yet. If Steve decides to emulate paddles in the EventHandler > > (a la JoyMouse), we both may be spared from coding this. I'm working on adding remapping for paddle events, which is really the underlying problem we have here. When that's done, it should be as easy as saying 'remap some axis or trackball motion to paddle movement', and that will take care of all possible cases. Unfortunately, I can't implement that until I obtain a suitable gamepad to do testing with. Once it's complete, all the other ports will not have to worry about it. > Ok, thanks for the info. Some silly question, how to i notice that > paddle support is needed ? Do roms request paddle support or is it user > interaction to swicth to paddle mode. If so i would need a handy hot > key for it. As Brian mentioned, it's specified in the stella.pro entry, accessible through the Console::properties object. At the core level, a game that uses paddles checks for 'paddle' events, and one that uses joysticks checks for 'joystick' events (and similarly for other virtual input devices). It's up to the EventHandler to send appropriate events at the appropriate time. Steve |