Skip to content

Instantly share code, notes, and snippets.

@jmfergeau
Created January 5, 2022 14:26
Show Gist options
  • Save jmfergeau/f07ef4d03949851dbc90c39df3d38419 to your computer and use it in GitHub Desktop.
Save jmfergeau/f07ef4d03949851dbc90c39df3d38419 to your computer and use it in GitHub Desktop.
Wii Guitar in Clone Hero
# This file must be located in "/etc/cwiid/wminput" and should be named "gamepad"
# gameport
Classic.Dpad.X = ABS_X
Classic.Dpad.Y = ABS_Y
Classic.LStick.X = ABS_HAT0X
Classic.LStick.Y = ABS_HAT0Y
Classic.RStick.X = ABS_HAT1X
Classic.RStick.Y = ABS_HAT1Y
Classic.LAnalog = ABS_GAS
Classic.RAnalog = ABS_BRAKE
Classic.A = BTN_A
Classic.B = BTN_B
Classic.X = BTN_X
Classic.Y = BTN_Y
Classic.Minus = BTN_SELECT
Classic.Plus = BTN_START
Classic.Home = BTN_MODE
Classic.L = BTN_TL
Classic.R = BTN_TR
Classic.ZL = BTN_TL2
Classic.ZR = BTN_TR2
Classic.Down = BTN_THUMBL
Classic.Up = BTN_THUMBR
Wiimote.Up = KEY_U
Wiimote.Down = KEY_D
Wiimote.Left = KEY_L
Wiimote.Right = KEY_R
Wiimote.1 = KEY_1
Wiimote.2 = KEY_2
Wiimote.A = KEY_A
Wiimote.B = KEY_B
Wiimote.Plus = KEY_EQUAL
Wiimote.Minus = KEY_MINUS
Wiimote.Home = KEY_H
Wiimote.Dpad.X = ABS_HAT2X
Wiimote.Dpad.Y = ABS_HAT2Y
#!/bin/sh
# Launch this before launching Clone Hero. You will need cwiid installed
echo "Launching the cwiid hack. Press ctrl+C to disconnect the wii guitar"
sudo wminput -c /etc/cwiid/wminput/gamepad
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment