请选择 进入手机版 | 继续访问电脑版
12Next
返回列表 发新帖
查看: 9447|回复: 10

USB Gamepad + GT1

[复制链接]

1

Threads

4

Posts

29

Credits

Newbie

Rank: 1

Credits
29
发表于 2017-10-30 08:36:23 | 显示全部楼层 |阅读模式
Edited by spax05 at 2017-11-03 17:19

Problem with USB-gamepads on Beelink GT1 2/16 & Beelink GT1 Ultimate:
1. Speedlink Strike (Vendor_0079_Product_0006)
2.Defender Game MasterG2 (Vendor_0079_Product_0011)

When you press buttons A, B, X, Y, L1 the current program exits and starts MUSIC_PLAYER, BROWSER_APP, ALL_APP, MEDIA_PLAYER, File manager.
They work like hot keys.
Where can I disable this setting?

This is my config for Speedlink Strike (Vendor_0079_Product_0006):
  1. #Buttons
  2. key 290   BUTTON_A
  3. key 289   BUTTON_B
  4. key 291   BUTTON_X
  5. key 288   BUTTON_Y
  6. key 292   BUTTON_L1
  7. key 293   BUTTON_R1
  8. key 294   BUTTON_L2
  9. key 295   BUTTON_R2
  10. key 296   BUTTON_SELECT
  11. key 297   BUTTON_START
  12. key 298   BUTTON_THUMBL
  13. key 299   BUTTON_THUMBR

  14. #Left Stick
  15. axis 0x00 X
  16. axis 0x01 Y

  17. #Right Stick
  18. axis 0x05 RZ
  19. axis 0x03 Z

  20. #D-pad
  21. axis 0x10 HAT_X
  22. axis 0x11 HAT_Y
复制代码
I seem to have understood the problem, but I do not know how to solve it completely.
The picture is as follows:
In the TV-Box Beelink GT1 (ultimate) scan-codes 288,289,290,291,292 somewhere in the system are tied to the launch standard system programs.
I got connected SpeedLink Torid gamepad for the test - there are the following scan-codes: "X" -307, "Y" -304, "A" -306, "B" -305, "L1" -308. With him there are NO problems.
The problem is only with the scan-codes "288-292".

Question: Is it possible to change the scan-codes provided by the gamepad?
回复

使用道具 举报

0

Threads

2

Posts

22

Credits

Newbie

Rank: 1

Credits
22
发表于 2017-11-01 22:26:21 | 显示全部楼层
HELLO,
I have the same problem.
Does anyone know the solution?
回复 支持 反对

使用道具 举报

0

Threads

42

Posts

499

Credits

Full Member

Rank: 3Rank: 3

Credits
499
发表于 2017-11-02 08:36:44 | 显示全部楼层
Edited by tillaz87 at 2017-11-02 08:42

Tell me scancodes When you press buttons A, B, X, Y, L1

do they match the config file?
回复 支持 反对

使用道具 举报

1

Threads

4

Posts

29

Credits

Newbie

Rank: 1

Credits
29
 楼主| 发表于 2017-11-02 18:19:42 | 显示全部楼层
tillaz87 replied at 2017-11-02 08:36
Tell me scancodes When you press buttons A, B, X, Y, L1

do they match the config file?

A - scancode 290
B - scancode 289
X - scancode 291
Y - scancode 288
L1 - scancode 292

Yes, keys match the config file!
回复 支持 反对

使用道具 举报

1

Threads

4

Posts

29

Credits

Newbie

Rank: 1

Credits
29
 楼主| 发表于 2017-11-02 18:26:43 | 显示全部楼层
1. I freeze stock apps "Chrome", "Music", "File manager".
2. I change "AOSP Keyboard" to "G-Board".

Now keys "Y", "A", "B" working correctly.
Key "X" run ALL_APPS and "L1" run "Files".
回复 支持 反对

使用道具 举报

1

Threads

4

Posts

29

Credits

Newbie

Rank: 1

Credits
29
 楼主| 发表于 2017-11-03 17:18:48 | 显示全部楼层
I seem to have understood the problem, but I do not know how to solve it completely.
The picture is as follows:
In the TV-Box Beelink GT1 (ultimate) scan-codes 288,289,290,291,292 somewhere in the system are tied to the launch standard system programs.
I got connected SpeedLink Torid gamepad for the test - there are the following scan-codes: "X" -307, "Y" -304, "A" -306, "B" -305, "L1" -308. With him there are NO problems.
The problem is only with the scan-codes "288-292".

Question: Is it possible to change the scan-codes provided by the gamepad?

回复 支持 反对

使用道具 举报

0

Threads

42

Posts

499

Credits

Full Member

Rank: 3Rank: 3

Credits
499
发表于 2017-11-03 19:07:19 | 显示全部楼层
spax05 replied at 2017-11-02 18:26
1. I freeze stock apps "Chrome", "Music", "File manager".
2. I change "AOSP Keyboard" to "G-Board".
...

system\usr\keylayout\Generic.kl

change

key 288   BUTTON_1
key 289   BUTTON_2
key 290   BUTTON_3
key 291   BUTTON_4
key 292   BUTTON_5

to

key 288   BUTTON_Y
key 289   BUTTON_B
key 290   BUTTON_A
key 291   BUTTON_X
key 292   BUTTON_L1

try that
回复 支持 反对

使用道具 举报

0

Threads

42

Posts

499

Credits

Full Member

Rank: 3Rank: 3

Credits
499
发表于 2017-11-03 19:12:34 | 显示全部楼层
if not not have a look at services.jar

com/android/server/policy/PhoneWindowManager.smali

this is where code for the remote shortcuts was in 6.0.1
回复 支持 反对

使用道具 举报

0

Threads

42

Posts

499

Credits

Full Member

Rank: 3Rank: 3

Credits
499
发表于 2017-11-03 19:16:19 | 显示全部楼层
and just checking but did you set correct permissions for Vendor_0079_Product_0011.kl that you made?
回复 支持 反对

使用道具 举报

0

Threads

2

Posts

22

Credits

Newbie

Rank: 1

Credits
22
发表于 2017-11-04 02:05:36 | 显示全部楼层
Guys, I was having the same problem, I bought the gamepad IPEGA 9068 and it worked normally in games and emulators.
IPEGA gamepad worked.

回复 支持 反对

使用道具 举报

12Next
返回列表 发新帖
您需要登录后才可以回帖 登录 | Sign up

本版积分规则

快速回复 返回顶部 返回列表