derek57 / sdl-wii

Automatically exported from code.google.com/p/sdl-wii
0 stars 0 forks source link

SDL Wii detects and enables Wiimotes as joysticks and mice at the same time. #11

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download OpenTyrianWii.
2. Run
3. Start new game
4. In the Game Menu (upgrade, etc. screen), press A.  You'll get a
"double-click" type event.

What is the expected output? What do you see instead?
I expect one "RETURN" key event, I get two.

What version of the product are you using? On what operating system?
Latest version, on the Wii.

A possible solution would be to have a flag on compiling that sets Wiimotes
as mice or joysticks.  Another is to have a variable in SDL.h for each
wiimote that you can set to mouse or joystick in code, with a default of
whichever.

Original issue reported on code.google.com by rhydonj@gmail.com on 26 May 2009 at 5:35

GoogleCodeExporter commented 9 years ago
Yes, this is an issue. I would prefer a more elegant solution - use WPAD data 
to 
determine what to do. Use as a mouse when ir.valid and as a joystick when 
!ir.valid

Original comment by dborth@gmail.com on 26 May 2009 at 5:42

GoogleCodeExporter commented 9 years ago
Ok. What I've done is disable mouse button presses when the wiimote is not 
pointed 
at the screen. But this will only be a partial solution for you. It doesn't 
take 
care of disabling the joystick when the wiimote is pointed at the screen - 
which I'm 
hesistant to do. What you should do for your case (if you haven't already) is 
disable either the mouse or joystick while in the menu, within the 
OpenTyrianWii 
code.

Original comment by dborth@gmail.com on 28 Jun 2009 at 6:27

GoogleCodeExporter commented 9 years ago

Original comment by dborth@gmail.com on 4 Aug 2009 at 8:52