Page 4 of 4

Re: T300RS and others FFB Wheel Development

Posted: Wed Oct 21, 2015 11:24 am
by tps
InhexSTER wrote: Tested a G27 shifter, the byte for it is right after clutch byte (50)
byte index 51

0x0 = neutral
0x1 = 1
0x2 = 2
0x4 = 3
0x8 = 4
0x10 = 5
0x20 = 6
0x80 = Reverse

seems like bit before reverse is not used in G27 shifter since there is no gear in that spot
this might be for compatibility mode, no idea. native mode has it mapped differently.

Re: T300RS and others FFB Wheel Development

Posted: Mon Nov 02, 2015 4:45 pm
by tps
I've tested this with G27 emu and I can confirm that for Reverse you need to:

Code: Select all

      /*
       *
    B8+B9+B10: gear R?? from ~ 7D 8A 1C (idle) to ~ B0 2A 5D (engaged)
    -H shifter-
    [B8 B9 B10] values:
     7C 8A 9C neutral
     3F 94 9C left pull
     BA 8A 9C right pull
     7B 90 DC center push
     BD 92 DC right push
     C4 C1 DC right push up
     B3 2B DD right push down / Reverse
        */
      g27_report[8] = 0xB3;
      g27_report[9] = 0x2B;
      g27_report[10] = 0xDD;
I use the neutral values when Reverse isn't engaged and set the specific values when Reverse is engaged.