diff --git a/right/src/init_peripherals.c b/right/src/init_peripherals.c index 53e1d16..d9562ae 100644 --- a/right/src/init_peripherals.c +++ b/right/src/init_peripherals.c @@ -125,5 +125,4 @@ void InitPeripherals(void) #endif InitKeyDebouncer(); EEPROM_Init(); - //microseconds_init(); } diff --git a/right/src/usb_commands/usb_command_get_debug_buffer.c b/right/src/usb_commands/usb_command_get_debug_buffer.c index 547a2c0..a971f56 100644 --- a/right/src/usb_commands/usb_command_get_debug_buffer.c +++ b/right/src/usb_commands/usb_command_get_debug_buffer.c @@ -17,12 +17,6 @@ void UsbCommand_GetDebugBuffer(void) SetDebugBufferUint32(40, CurrentTime); memcpy(GenericHidOutBuffer, DebugBuffer, USB_GENERIC_HID_OUT_BUFFER_LENGTH); - -/* uint64_t ticks = microseconds_get_ticks(); - uint32_t microseconds = microseconds_convert_to_microseconds(ticks); - uint32_t milliseconds = microseconds/1000; - *(uint32_t*)(GenericHidOutBuffer+1) = ticks; -*/ } void SetDebugBufferUint8(uint32_t offset, uint8_t value) diff --git a/right/src/usb_report_updater.c b/right/src/usb_report_updater.c index 232d1c1..f6d4b11 100644 --- a/right/src/usb_report_updater.c +++ b/right/src/usb_report_updater.c @@ -29,12 +29,12 @@ static mouse_kinetic_state_t mouseMoveState = { .downState = SerializedMouseAction_MoveDown, .leftState = SerializedMouseAction_MoveLeft, .rightState = SerializedMouseAction_MoveRight, - .intMultiplier = 31.25, - .initialSpeed = 3, - .acceleration = 10, - .deceleratedSpeed = 8, - .baseSpeed = 16, - .acceleratedSpeed = 32, + .intMultiplier = 10, + .initialSpeed = 10, + .acceleration = 30, + .deceleratedSpeed = 1, // 25 + .baseSpeed = 50, + .acceleratedSpeed = 255, // 100 }; static mouse_kinetic_state_t mouseScrollState = { @@ -42,12 +42,12 @@ static mouse_kinetic_state_t mouseScrollState = { .downState = SerializedMouseAction_ScrollUp, .leftState = SerializedMouseAction_ScrollLeft, .rightState = SerializedMouseAction_ScrollRight, - .intMultiplier = 0.75, + .intMultiplier = 1, .initialSpeed = 8, .acceleration = 8, - .deceleratedSpeed = 8, - .baseSpeed = 16, - .acceleratedSpeed = 32, + .deceleratedSpeed = 1, // 25 + .baseSpeed = 12, + .acceleratedSpeed = 255, // 100 }; void processMouseKineticState(mouse_kinetic_state_t *kineticState)