Skip to content

Commit

Permalink
Fix rel_to_abs recentering (#1050)
Browse files Browse the repository at this point in the history
* Fix ci pipeline

* Fix rel_to_abs_handler axis recentering
  • Loading branch information
sezanzeb authored Feb 1, 2025
1 parent 0fca3a5 commit 230aac3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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
3 changes: 1 addition & 2 deletions scripts/ci-install-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ set -xeuo pipefail
sudo apt-get install -y gettext python3-evdev python3-pydbus python3-pydantic python3-gi gir1.2-gtk-3.0 gir1.2-gtksource-4

# ensure pip and setuptools/wheel up to date so can install all pip modules
python -m pip install --upgrade pip
python -m pip install --upgrade --force-reinstall wheel setuptools
sudo apt-get install python3-pip python3-wheel python3-setuptools

# install test deps which aren't in setup.py
python -m pip install psutil pylint-pydantic

0 comments on commit 230aac3

Please sign in to comment.