mirror of
https://github.com/marcriera/ddgo-controller-docs.git
synced 2025-04-16 08:49:28 +02:00
Add Ryojouhen documentation
This commit is contained in:
parent
ca89f9df35
commit
7da193bda0
1 changed files with 49 additions and 1 deletions
|
@ -202,7 +202,55 @@ Multi-byte values should be stored in **Little Endian**.
|
|||
|
||||
### TCPP-20014
|
||||
|
||||
No details are available regarding internal functioning.
|
||||
This controller has two handles (4 power notches and an analogue brake handle with three areas), a D-Pad and seven buttons (Select, Start, Horn, Announce, Camera, Left doors, Right doors). In addition, it provides a 3.5 mm jack connector to plug a horn pedal.
|
||||
|
||||
Internally, it is a HID device with a vendor-specific class.
|
||||
|
||||
| | |
|
||||
|-------------------|----------------------|
|
||||
| **Product name** | TAITO_DENSYA_CON_T03 |
|
||||
| **Manufacturer** | TAITO |
|
||||
| **Vendor ID** | 0x0AE4 |
|
||||
| **Product ID** | 0x0007 |
|
||||
| **Serial number** | TCPP20014 |
|
||||
|
||||
#### Input
|
||||
|
||||
The controller sends reports to the host (PS2) formed by 8 bytes:
|
||||
|
||||
| Byte 1 | Byte 2 | Byte 3 | Byte 4 | Byte 5 -| Bytes 6-8 |
|
||||
|:------:|:------:|:------:|:------:|:-------:|:---------:|
|
||||
| Brake | Power | Pedal | D-Pad | Buttons | Unused |
|
||||
|
||||
Unlike traditional controllers, the brake handle is analogue and the brake byte reflects the position of the handle precisely. There are three areas with the ranges listed below.
|
||||
|
||||
| Reduce pressure | Keep pressure | Increase pressure |
|
||||
|:---------------:|:-------------:|:-----------------:|
|
||||
| 0x24-0x64 | 0x65-0x89 | 0x8A-0xD7 |
|
||||
|
||||
The values for the power notch byte are listed below.
|
||||
|
||||
| N | P1 | P2 | P3 | P4 | Transition |
|
||||
|:----:|:----:|:----:|:----:|:----:|:----------:|
|
||||
| 0x00 | 0x3C | 0x78 | 0xB4 | 0xF0 | 0xFF |
|
||||
|
||||
The pedal byte has two possible values depending on the state of the pedal.
|
||||
|
||||
| Released | Pressed |
|
||||
|:--------:|:-------:|
|
||||
| 0xFF | 0x00 |
|
||||
|
||||
The D-pad byte represents the state of the arrow buttons. If two opposite directions are pressed simultaneously, the result is **Center** unless a third button is pressed.
|
||||
|
||||
| N | NE | E | SE | S | SW | W | NW | None/Center |
|
||||
|:----:|:----:|:----:|:----:|:----:|:----:|:----:|:----:|:-----------:|
|
||||
| 0x00 | 0x01 | 0x02 | 0x03 | 0x04 | 0x05 | 0x06 | 0x07 | 0x08 |
|
||||
|
||||
The button byte uses seven bits to represent the state of the physical buttons. **0** means that the button is released and **1** that it is pressed. A bitmask can be used to retrieve the buttons.
|
||||
|
||||
| Button 1 | Button 2 | Button 3 | Button 4 | Button 5 | Button 6 | Button 7 |
|
||||
|:--------:|:--------:|:--------:|:-----------:|:----------:|:--------:|:--------:|
|
||||
| Horn | Announce | Camera | Right doors | Left doors | SELECT | START |
|
||||
|
||||
## Acknowledgements
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue