File tree Expand file tree Collapse file tree 4 files changed +29
-4
lines changed
projects/ROCKNIX/packages/hardware/quirks/devices Expand file tree Collapse file tree 4 files changed +29
-4
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,10 @@ stty -F $SERIAL_DEVICE 115200 -clocal -opost -isig -icanon -echo
1313printf " \xe7\x55\x05\x01\x00\x00\x00\x00\x00\x5b\xed" > $SERIAL_DEVICE
1414sleep 0.1
1515printf " \x35\x35\x30\x35\x30\x31\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30" > $SERIAL_DEVICE
16+ sleep 0.1
1617
1718# Send frame to flip x/y a/b layout
18- printf " \xe7\x00\x00\x22\x02\x00\x00\x00\x1f\x43\xed" > " $SERIAL_DEVICE "
19+ printf " \xe7\x00\x00\x22\x02\x00\x00\x00\x0f\x33\xed" > " $SERIAL_DEVICE "
20+ sleep 0.1
21+ printf " \x30\x30\x30\x30\x32\x32\x30\x32\x30\x30\x30\x30\x30\x30\x30\x46" > " $SERIAL_DEVICE "
1922sleep 0.1
20- printf " \x30\x30\x30\x30\x32\x32\x30\x32\x30\x30\x30\x30\x30\x30\x31\x46" > " $SERIAL_DEVICE "
Original file line number Diff line number Diff line change 1- ../AYANEO Pocket ACE /020-set-xbox-gamepad
1+ ../AYANEO Pocket EVO /020-set-xbox-gamepad
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ # SPDX-License-Identifier: GPL-2.0-or-later
4+ # Copyright (C) 2025 ROCKNIX
5+
6+ # Serial device
7+ SERIAL_DEVICE=" /dev/ttyHS0"
8+
9+ # Open serial device
10+ stty -F $SERIAL_DEVICE 115200 -clocal -opost -isig -icanon -echo
11+
12+ # Send frame to switch gamepad to fake xbox 360 controller
13+ printf " \xe7\x55\x05\x01\x00\x00\x00\x00\x00\x5b\xed" > $SERIAL_DEVICE
14+ sleep 0.1
15+ printf " \x35\x35\x30\x35\x30\x31\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30" > $SERIAL_DEVICE
16+ sleep 0.1
17+
18+ # Send frame to flip x/y a/b layout
19+ printf " \xe7\x00\x00\x22\x02\x00\x00\x00\x1f\x43\xed" > " $SERIAL_DEVICE "
20+ sleep 0.1
21+ printf " \x30\x30\x30\x30\x32\x32\x30\x32\x30\x30\x30\x30\x30\x30\x31\x46" > " $SERIAL_DEVICE "
22+ sleep 0.1
Original file line number Diff line number Diff line change @@ -13,8 +13,10 @@ stty -F $SERIAL_DEVICE 115200 -clocal -opost -isig -icanon -echo
1313printf " \xe7\x55\x05\x01\x00\x00\x00\x00\x00\x5b\xed" > $SERIAL_DEVICE
1414sleep 0.1
1515printf " \x35\x35\x30\x35\x30\x31\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30" > $SERIAL_DEVICE
16+ sleep 0.1
1617
1718# Send frame to flip x/y a/b layout
1819printf " \xe7\x00\x00\x22\x02\x00\x00\x00\x1f\x43\xed" > " $SERIAL_DEVICE "
1920sleep 0.1
2021printf " \x30\x30\x30\x30\x32\x32\x30\x32\x30\x30\x30\x30\x30\x30\x31\x46" > " $SERIAL_DEVICE "
22+ sleep 0.1
You can’t perform that action at this time.
0 commit comments