我最近购买了一个“Playmax Thunder Pad”USB 游戏手柄,假设它可以在 Linux 上即插即用(游戏手柄往往都是这样),令我高兴的是,我发现一切正常......除了右手模拟棒。
我可以移动模拟摇杆,并且运动事件会在 和 中注册jstest-gtk
,evtest
但摇杆的 x 轴似乎正在发送从中心移动 1 或 2 个点的恒定事件。这使得无法玩任何游戏,因为在检测到摇杆再次居中之前视图仅移动一秒钟。
我尝试过校准这个东西但没有成功。
这是一个示例evtest
输出:
Input driver version is 1.0.1
Input device ID: bus 0x3 vendor 0x79 product 0xa version 0x110
Input device name: "Generic USB Joystick "
Supported events:
Event type 0 (EV_SYN)
Event type 1 (EV_KEY)
Event code 288 (BTN_TRIGGER)
Event code 289 (BTN_THUMB)
Event code 290 (BTN_THUMB2)
Event code 291 (BTN_TOP)
Event code 292 (BTN_TOP2)
Event code 293 (BTN_PINKIE)
Event code 294 (BTN_BASE)
Event code 295 (BTN_BASE2)
Event code 296 (BTN_BASE3)
Event code 297 (BTN_BASE4)
Event code 298 (BTN_BASE5)
Event code 299 (BTN_BASE6)
Event type 3 (EV_ABS)
Event code 0 (ABS_X)
Value 128
Min 0
Max 255
Flat 15
Event code 1 (ABS_Y)
Value 128
Min 0
Max 255
Flat 15
Event code 2 (ABS_Z)
Value 129
Min 0
Max 255
Flat 15
Event code 5 (ABS_RZ)
Value 128
Min 0
Max 255
Flat 15
Event code 16 (ABS_HAT0X)
Value 0
Min -1
Max 1
Event code 17 (ABS_HAT0Y)
Value 0
Min -1
Max 1
Event type 4 (EV_MSC)
Event code 4 (MSC_SCAN)
Properties:
Testing ... (interrupt to exit)
Event: time 1493717417.256734, type 3 (EV_ABS), code 2 (ABS_Z), value 128
Event: time 1493717417.256734, -------------- SYN_REPORT ------------
Event: time 1493717417.264830, type 3 (EV_ABS), code 2 (ABS_Z), value 129
Event: time 1493717417.264830, -------------- SYN_REPORT ------------
Event: time 1493717417.280830, type 3 (EV_ABS), code 2 (ABS_Z), value 128
Event: time 1493717417.280830, -------------- SYN_REPORT ------------
Event: time 1493717417.288769, type 3 (EV_ABS), code 2 (ABS_Z), value 129
Event: time 1493717417.288769, -------------- SYN_REPORT ------------
Event: time 1493717417.384837, type 3 (EV_ABS), code 2 (ABS_Z), value 130
Event: time 1493717417.384837, -------------- SYN_REPORT ------------
无穷无尽。
聚苯乙烯
这是一个仅限 Linux 的问题,我可以在我的游戏中使用这个游戏手柄其他安装的操作系统没有任何问题。