Fix input lag

This commit is contained in:
Marc Riera 2023-04-24 23:59:19 +02:00
parent 66f6a3a465
commit 9bcb95148d
2 changed files with 3 additions and 2 deletions

View file

@ -1,6 +1,7 @@
#!/bin/sh -e
start() {
echo 3 > /sys/devices/platform/gpio-keys-polled.0/input/input1/poll
ddgo-pnp-controller
echo 0ae4 > "/sys/class/android_usb/android0/idVendor"
echo 0003 > "/sys/class/android_usb/android0/idProduct"

View file

@ -7,10 +7,10 @@ use crate::controller::emulated::{DeviceDescriptor, ENDPOINT1};
pub const DESCRIPTORS: [u8; 66] = [0x01, 0x00, 0x00, 0x00, 0x42, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00,
0x09, 0x04, 0x00, 0x00, 0x01, 0x03, 0x00, 0x00, 0x00,
0x09, 0x21, 0x11, 0x01, 0x00, 0x01, 0x22, 0x3F, 0x00,
0x07, 0x05, 0x81, 0x03, 0x08, 0x00, 0x28,
0x07, 0x05, 0x81, 0x03, 0x08, 0x00, 0x05,
0x09, 0x04, 0x00, 0x00, 0x01, 0x03, 0x00, 0x00, 0x00,
0x09, 0x21, 0x11, 0x01, 0x00, 0x01, 0x22, 0x3F, 0x00,
0x07, 0x05, 0x81, 0x03, 0x08, 0x00, 0x28];
0x07, 0x05, 0x81, 0x03, 0x08, 0x00, 0x05];
pub const STRINGS: [u8; 16] = [0x02, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00];
pub const DEVICE_DESCRIPTOR: DeviceDescriptor = DeviceDescriptor{b_device_class: 0x0, b_device_sub_class: 0x0, id_vendor: 0x0AE4, id_product: 0x0003, i_manufacturer: "TAITO", i_product: "Densha de Go! Plug & Play", i_serial_number: "DGOC-44U"};