Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix rel_to_abs recentering #1050

Merged
merged 2 commits into from
Feb 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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