RFE: Provide a mapping to use wiimote as joystick device

Bug #621669 reported by J. Félix Ontañón
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
WiiCan
Fix Released
Wishlist
J. Félix Ontañón

Bug Description

Wiimote emulating joystick device should be a default mapping to play games because the wiimote it's a joystick.

A good joystick mapping for this should contain:
- Wiimote arrow pad as axis
- Wiimote A,B as main buttons
- Wiimote Home as start button

And probably the use of Nunchuck:
- Nunchuk stick as main joystick axis
- Nunchuk C,Z as secondary buttons

Revision history for this message
J. Félix Ontañón (fontanon) wrote :

I think this could be a good mapping. I've tested it successfully with sdlmame.
I attach a .wii mapping package file for wiican 0.3 series.

# Gamepad axis 0 (analog)
Nunchuk.Stick.X = ABS_X
Nunchuk.Stick.Y = ABS_Y

# Gamepad axis 1 (absolute)
Wiimote.Dpad.X = ABS_HAT0X
Wiimote.Dpad.Y = ABS_HAT1X

# Main gamepad buttons
Wiimote.A = BTN_A
Wiimote.B = BTN_B
Nunchuk.C = BTN_C
Nunchuk.Z = BTN_X

# Other gamepad buttons
Wiimote.Home = BTN_START
Wiimote.Minus = BTN_SELECT
Wiimote.Plus = BTN_MODE
Wiimote.1 = BTN_Y
Wiimote.2 = BTN_Z

Revision history for this message
Zombie Ryushu (zombie-ryushu) wrote :

The game pad mode seems to work well. What about a Light Gun mode? Can the IR Sensor be set to be an axis without affecting mouse movement?

Revision history for this message
J. Félix Ontañón (fontanon) wrote :

I suppose this could work:

Plugin.ir_ptr.X = ABS_HAT0X
Plugin.ir_ptr.Y = ABS_HAT0Y

Could you test? I'm waiting for the sensor bar, so i'll do the tests then.

Revision history for this message
Zombie Ryushu (zombie-ryushu) wrote :

I did, it doesn't work. I also tried

Plugin.ir_ptr.X = ABS_X
Plugin.ir_ptr.Y = ABS_Y

That failed as well.

Revision history for this message
J. Félix Ontañón (fontanon) wrote :

For the joystick thing the classic gamepad mapping has been commited.
We will deal with IR issues at lp:502418

Changed in wiican:
status: In Progress → Fix Committed
Changed in wiican:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.