switch to tusb_xinput fork

This commit is contained in:
wiredopposite
2024-04-17 19:16:17 -06:00
parent 2613221d44
commit 86c60d76a4
3 changed files with 9 additions and 13 deletions

3
.gitmodules vendored
View File

@@ -4,9 +4,6 @@
[submodule "lib/tinyusb"]
path = lib/tinyusb
url = https://github.com/hathach/tinyusb.git
[submodule "lib/tusb_xinput"]
path = lib/tusb_xinput
url = https://github.com/Ryzee119/tusb_xinput.git
[submodule "src/usbd"]
path = src/usbd
url = https://github.com/wiredopposite/usbd.git

Submodule lib/tusb_xinput deleted from 7f4b2b3b92

View File

@@ -37,16 +37,16 @@ bool store_input_mode(enum InputMode new_mode)
restore_interrupts(saved_interrupts);
return true;
// const uint8_t *flash_target_contents = (const uint8_t *)(XIP_BASE + FLASH_SIZE_BYTES - FLASH_SECTOR_SIZE);
// if ((uint8_t)saved_mode != *flash_target_contents)
// {
// return false;
// }
// return true;
const uint8_t *flash_target_contents = (const uint8_t *)(XIP_BASE + FLASH_SIZE_BYTES - FLASH_SECTOR_SIZE);
if ((uint8_t)saved_mode != *flash_target_contents)
{
return false;
}
return true;
}
bool change_input_mode(GamepadButtons buttons)