xerpi / ds4vita

Use a DS4 on your PSVita
172 stars 34 forks source link

DS4 Triggers to rear touch pad #61

Closed KyleBeebe closed 4 years ago

KyleBeebe commented 4 years ago

Mapped DS4 L2 and R2 inputs to points on left and right side of rear touch pad

xerpi commented 4 years ago

Are:

    unsigned int l2_id             : 8;
    unsigned int r2_id             : 8;

The analog values (pressure) on the triggers? Do they work correct as touch finger IDs?

KyleBeebe commented 4 years ago

Are:

  unsigned int l2_id             : 8;
  unsigned int r2_id             : 8;

The analog values (pressure) on the triggers? Do they work correct as touch finger IDs?

I originally called them finger3_id and finger4_id. They are just what gets assigned to the SceTouchReport.id field. I just hardcoded them to 8 following the 7 that both finger1_id and finger2_id are set to. It seems to be working fine, they were registering correctly in the vitasdk/samples/touch program and working as intended in Resogun.