It actually came from being tired & not doing the right bitwise operations ;)
the following fixed it
gamepad.btnState |= this.bValue; // to set stuff
gamepad.btnState &=~ this.bValue; // to unset stuff
For the STM32F stuff, I'll have to digg what you suggested & more ..
(..) xbox 360 controller is a HID controller with the HID report descriptor removed and the device class, subclass, and protocol set to 0xFF (255)
Moreover, if I read correctly, the "Xbox 360 Controller Security" is not yet broken ( while said to be reverse engineered on a per console basis ? https://oct0xor.github.io/2017/05/03/xsm3/ ), so connecting to a console instead of a pc will be a harder than expected ..
Anyway, as I'll have to port the current code, here's a "roadmap" to be applied to the Espruino/STM32F platform ( attached pdf file )
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hi there !
( btw: I just added a pull request for another example on using a PN532 to read RFID cards ;p )
Thanks for the hint, but it didn't come from sending ( I do the following ):
It actually came from being tired & not doing the right bitwise operations ;)
the following fixed it
For the STM32F stuff, I'll have to digg what you suggested & more ..
Moreover, if I read correctly, the "Xbox 360 Controller Security" is not yet broken ( while said to be reverse engineered on a per console basis ? https://oct0xor.github.io/2017/05/03/xsm3/ ), so connecting to a console instead of a pc will be a harder than expected ..
Anyway, as I'll have to port the current code, here's a "roadmap" to be applied to the Espruino/STM32F platform ( attached pdf file )
1 Attachment