File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/hhd/controller/virtual/dualsense Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -444,8 +444,8 @@ def consume(self, events: Sequence[Event]):
444444 * tc .x_mult
445445 + tc .x_ofs
446446 )
447- new_rep [self .ofs + 36 ] = x & 0xFF
448- new_rep [self .ofs + 37 ] = (new_rep [self .ofs + 34 ] & 0xF0 ) | (
447+ new_rep [self .ofs + 37 ] = x & 0xFF
448+ new_rep [self .ofs + 38 ] = (new_rep [self .ofs + 34 ] & 0xF0 ) | (
449449 x >> 8
450450 )
451451 case "left_touchpad_y" :
@@ -455,10 +455,10 @@ def consume(self, events: Sequence[Event]):
455455 * tc .y_mult
456456 + tc .y_ofs
457457 )
458- new_rep [self .ofs + 37 ] = (new_rep [self .ofs + 34 ] & 0x0F ) | (
458+ new_rep [self .ofs + 38 ] = (new_rep [self .ofs + 34 ] & 0x0F ) | (
459459 (y & 0x0F ) << 4
460460 )
461- new_rep [self .ofs + 38 ] = y >> 4
461+ new_rep [self .ofs + 39 ] = y >> 4
462462 case "gyro_ts" | "accel_ts" | "imu_ts" :
463463 send = True
464464 self .last_imu = time .perf_counter ()
You can’t perform that action at this time.
0 commit comments