jgeumlek / MoltenGamepad

Flexible Linux input device translator, geared for gamepads
MIT License
280 stars 42 forks source link

moltengamepad doesn't seem to pick up input #96

Open ghost opened 3 years ago

ghost commented 3 years ago

I'm using this profile for my wiimote:

[wiimote] wiimote.wm_a = key(key_a) wiimote.wm_b = key(key_b) wiimote.wm_1 = key(key_1) wiimote.wm_2 = key(key_2) wiimote.wm_up = key(key_up) wiimote.wm_down = key(key_down) wiimote.wm_left = key(key_left) wiimote.wm_right = key(key_right) wiimote.wm_plus = key(key_4) wiimote.wm_minus = key(key_3) wiimote.wm_ir_x = mouse(rel_x) wiimote.wm_ir_y = mouse(rel_y)

It says it parses the profile, but the buttons have no effects. For now I move wm1 to keyboard after starting moltengamepad. (to allow it to control the mouse). A curious thing is that I can control it using the nunchuk stick. Xev also only reports the nunchuk stick. Is the driver broken? If yes, how can one fix that?

Fancy2209 commented 2 years ago

Using the right thungs you see, when a Nunchuck is conected the buttons work like this

  btn   nk_a:   Wiimote A button with Nunchuk
  btn   nk_b:   Wiimote B button with Nunchuk
  btn   nk_plus:    Wiimote + button with Nunchuk
  btn   nk_minus:   Wiimote - button with Nunchuk
  btn   nk_1:   Wiimote 1 button with Nunchuk
  btn   nk_2:   Wiimote 2 button with Nunchuk
  btn   nk_home:    Wiimote home button with Nunchuk
  btn   nk_left:    Wiimote Dpad left with Nunchuk
  btn   nk_right:   Wiimote Dpad right with Nunchuk
  btn   nk_up:  Wiimote Dpad up with Nunchuk
  btn   nk_down:    Wiimote Dpad down with Nunchuk
  btn   nk_c:   Nunchuk C button
  btn   nk_z:   Nunchuk Z button
  axis  nk_stick_x: Nunchuk stick X
  axis  nk_stick_y: Nunchuk stick Y

so if a nunchuck is attached, use nk and not wm