Please select To the mobile version | Continue to access the desktop computer version
12Next
Return to list New
View: 8140|Reply: 10

USB Gamepad + GT1

[Copy link]

1

Threads

4

Posts

29

Credits

Newbie

Rank: 1

Credits
29
Post time 2017-10-30 08:36:23 | Show all posts |Read mode
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
Copy the Code
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?
Reply

Use magic Report

0

Threads

2

Posts

22

Credits

Newbie

Rank: 1

Credits
22
Post time 2017-11-01 22:26:21 | Show all posts
HELLO,
I have the same problem.
Does anyone know the solution?
Reply Support Not support

Use magic Report

0

Threads

42

Posts

499

Credits

Full Member

Rank: 3Rank: 3

Credits
499
Post time 2017-11-02 08:36:44 | Show all posts
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?
Reply Support Not support

Use magic Report

1

Threads

4

Posts

29

Credits

Newbie

Rank: 1

Credits
29
 Author| Post time 2017-11-02 18:19:42 | Show all posts
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!
Reply Support Not support

Use magic Report

1

Threads

4

Posts

29

Credits

Newbie

Rank: 1

Credits
29
 Author| Post time 2017-11-02 18:26:43 | Show all posts
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".
Reply Support Not support

Use magic Report

1

Threads

4

Posts

29

Credits

Newbie

Rank: 1

Credits
29
 Author| Post time 2017-11-03 17:18:48 | Show all posts
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?

Reply Support Not support

Use magic Report

0

Threads

42

Posts

499

Credits

Full Member

Rank: 3Rank: 3

Credits
499
Post time 2017-11-03 19:07:19 | Show all posts
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
Reply Support Not support

Use magic Report

0

Threads

42

Posts

499

Credits

Full Member

Rank: 3Rank: 3

Credits
499
Post time 2017-11-03 19:12:34 | Show all posts
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
Reply Support Not support

Use magic Report

0

Threads

42

Posts

499

Credits

Full Member

Rank: 3Rank: 3

Credits
499
Post time 2017-11-03 19:16:19 | Show all posts
and just checking but did you set correct permissions for Vendor_0079_Product_0011.kl that you made?
Reply Support Not support

Use magic Report

0

Threads

2

Posts

22

Credits

Newbie

Rank: 1

Credits
22
Post time 2017-11-04 02:05:36 | Show all posts
Guys, I was having the same problem, I bought the gamepad IPEGA 9068 and it worked normally in games and emulators.
IPEGA gamepad worked.

Reply Support Not support

Use magic Report

12Next
Return to list New
You have to log in before you can reply Login | Sign up

Points Rules

Quick Reply To Top Return to the list