
Wii remote как джойстик для Linux
Купил я уже достаточно давно джойстик Wii remote для самопальной интерактивной доски, но как-то не сошлись звёзды и я забил на эту идею. Но вот недавно я вытащил его шкафа и стал думать, что с ним делать.
Восемьсот рублей заплаченых конечно не жалко, но вот что он воляется без работы, меня стало напрягать :) Тут кокраз я захотел поиграть в Silent Hill в имуляторе SP. Итак, перед нами стоит новая цель, а именно прикрутить по синимузубу этот огрегат :)
- Ставим wminput
sudo apt-get install wminput
- Заходим в /etc/cwiid/wminput и создаём конфиг.
#cd /etc/cwiid/wminput
#nano mypad
добавляем в него:
#mypad
Wiimote.Up = KEY_LEFT
Wiimote.Down = KEY_RIGHT
Wiimote.Left = KEY_DOWN
Wiimote.Right = KEY_UP#joystick_buttons
Wiimote.A = BTN_A
Wiimote.B = BTN_B
Wiimote.Minus = BTN_X
Wiimote.Plus = BTN_Y
Wiimote.Home = BTN_Z
Wiimote.1 = BTN_1
Wiimote.2 = BTN_2
Сохраняем конфиг.
- Запускаем wminput с параметром нашего конфига
wminput -c mypad
на экране появится:
Put Wiimote in discoverable mode now (press 1+2)...
при успешном соединении появится надпись:
Ready.
Вот и всё! Ура! можете потестить в jstest-gtk.
- Установить jstest-gtk:
sudo apt-get install jstest-gtk
22 сентября 2025 / 16:13
This is an open job position to be a website chat assistant. We currently have lots of different businesses hiring for these positions in all countries right now.
Website chat assistants are the people who answer the customer’s live chat support or sales questions on a business’s website. The work is done online, normally from home.
Read the full details here to complete your application if you are interested.
-----> https://tinyurl.com/bdd6actf