Skip to content

Commit

Permalink
Fix rel_to_abs_handler axis recentering
Browse files Browse the repository at this point in the history
  • Loading branch information
sezanzeb committed Feb 1, 2025
1 parent 6431e0d commit 8f8320d
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,8 @@ async def _create_recenter_loop(self) -> None:
await self._moving.wait() # input moving started
while (
await asyncio.wait(
(self._moving.wait(),), timeout=self.mapping.release_timeout
(asyncio.create_task(self._moving.wait()),),
timeout=self.mapping.release_timeout,
)
)[0]:
self._moving.clear() # still moving
Expand All @@ -229,7 +230,8 @@ def _write(self, value: int) -> None:
"""Inject."""
try:
self.global_uinputs.write(
(*self._output_axis, value), self.mapping.target_uinput
(*self._output_axis, value),
self.mapping.target_uinput,
)
except OverflowError:
# screwed up the calculation of the event value
Expand Down

0 comments on commit 8f8320d

Please sign in to comment.