Інсталювати Steam
увійти
|
мова
简体中文 (спрощена китайська)
繁體中文 (традиційна китайська)
日本語 (японська)
한국어 (корейська)
ไทย (тайська)
Български (болгарська)
Čeština (чеська)
Dansk (данська)
Deutsch (німецька)
English (англійська)
Español - España (іспанська — Іспанія)
Español - Latinoamérica (іспанська — Латинська Америка)
Ελληνικά (грецька)
Français (французька)
Italiano (італійська)
Bahasa Indonesia (індонезійська)
Magyar (угорська)
Nederlands (нідерландська)
Norsk (норвезька)
Polski (польська)
Português (португальська — Португалія)
Português - Brasil (португальська — Бразилія)
Română (румунська)
Русский (російська)
Suomi (фінська)
Svenska (шведська)
Türkçe (турецька)
Tiếng Việt (в’єтнамська)
Повідомити про проблему з перекладом
Still, the axes are ordered wrongly, for some reason. xboxdrv can't reorder them properly (since switching trigger axes have a different range than stick axes). So a combination of of xboxdrv and jstest is in order. And with that, the game is actually playable.
In case anyone else is interested:
xboxdrv --evdev /dev/input/event5 -v --mimic-xpad --evdev-keymap KEY_#289=a,KEY_#290=b,KEY_#288=x,KEY_#291=y,KEY_#294=lt,KEY_#295=rt,KEY_#292=lb,KEY_#293=rb,KEY_#297=back,KEY_#296=start,KEY_#298=tl,KEY_#299=tr --evdev-absmap ABS_#0=x1,ABS_#1=y1,ABS_#2=x2,ABS_#5=y2,ABS_#16=dpad_x,ABS_#17=dpad_y --axismap -Y1=Y1,-Y2=Y2
And then I'm reordering the axes so that
- 0 and 1 are x and y on the left stick
- 2 and 3 are x and y on the right stick
- 4 is the right trigger
- 5 is the left trigger
- 6 and 7 are x and y on the dpad
EDIT: Or using jscal instead of jstest, the reordering would be done with
jscal -u 8,0,1,3,4,5,2,16,17,11,304,305,307,308,310,311,314,315,316,317,318 /dev/input/js1
Devs, how exactly are you querying the dpad in your code? As an axis? As a button? Or something else entirely?
emulated Microsoft X-Box 360 pad:
can be switched to buttons w/ --trigger-as-button option , but then:
ABS_GAS and ABS_BRAKE == LT and RT for now :)
dpad starts working after some experiments with --trigger-as-button and --dpad-as-button options , but all maping become wrong
so, I deside to simle map keyboard keys 1,2,3,4 to dpad