Skip to content

Conversation

@Yacoby
Copy link

@Yacoby Yacoby commented Feb 4, 2020

This is the same as this pull request, without the refactoring code, with deadband support.

Jacob Essex added 2 commits February 3, 2020 22:26
These changes have been manually copied from
atar-axis#105, as that pull request
didn't rebase cleanly on the HEAD of master
The non deadband axis movement is linearly scaled, meaining that
precision is maintained at the cost of a smaller movement space.
This avoids any sudden movement when exiting the deadband

A 5% deadband was chosen as it worked on my controller
@qlty-cloud-legacy
Copy link

Code Climate has analyzed commit b528420 and detected 1 issue on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 1

View more on Code Climate.

@kakra kakra added this to the v0.9 milestone Jul 10, 2020
@kakra kakra added the 0 | type: enhancement New feature or request label Jul 10, 2020
@kakra kakra modified the milestones: v0.9, v0.10 Nov 7, 2020
kakra added a commit to kakra/xpadneo that referenced this pull request Mar 28, 2021
kakra added a commit to kakra/xpadneo that referenced this pull request Mar 28, 2021
kakra added a commit to kakra/xpadneo that referenced this pull request Mar 28, 2021
Co-authored-by: Jacob Essex <[email protected]>
Co-authored-by: Florian Dollinger <[email protected]>
Closes: atar-axis#160
Closes: atar-axis#105
Signed-off-by: Kai Krakow <[email protected]>
kakra added a commit to kakra/xpadneo that referenced this pull request Mar 28, 2021
Co-authored-by: Jacob Essex <[email protected]>
Co-authored-by: Florian Dollinger <[email protected]>
Closes: atar-axis#160
Closes: atar-axis#105
Closes: atar-axis#99
Signed-off-by: Kai Krakow <[email protected]>
kakra added a commit to kakra/xpadneo that referenced this pull request Apr 1, 2021
Co-authored-by: Jacob Essex <[email protected]>
Co-authored-by: Florian Dollinger <[email protected]>
Closes: atar-axis#160
Closes: atar-axis#105
Closes: atar-axis#99
Signed-off-by: Kai Krakow <[email protected]>
@kakra
Copy link
Collaborator

kakra commented Apr 1, 2021

@Yacoby Your deadband idea has been integrated into PR #282

kakra added a commit to kakra/xpadneo that referenced this pull request Apr 2, 2021
Co-authored-by: Jacob Essex <[email protected]>
Co-authored-by: Florian Dollinger <[email protected]>
Closes: atar-axis#160
Closes: atar-axis#105
Closes: atar-axis#99
Signed-off-by: Kai Krakow <[email protected]>
kakra added a commit to kakra/xpadneo that referenced this pull request Apr 2, 2021
Co-authored-by: Jacob Essex <[email protected]>
Co-authored-by: Florian Dollinger <[email protected]>
Closes: atar-axis#160
Closes: atar-axis#105
Closes: atar-axis#99
Signed-off-by: Kai Krakow <[email protected]>
kakra added a commit to kakra/xpadneo that referenced this pull request Apr 2, 2021
Co-authored-by: Jacob Essex <[email protected]>
Co-authored-by: Florian Dollinger <[email protected]>
Closes: atar-axis#160
Closes: atar-axis#105
Closes: atar-axis#99
Signed-off-by: Kai Krakow <[email protected]>
kakra added a commit to kakra/xpadneo that referenced this pull request Apr 3, 2021
Co-authored-by: Jacob Essex <[email protected]>
Co-authored-by: Florian Dollinger <[email protected]>
Closes: atar-axis#160
Closes: atar-axis#105
Closes: atar-axis#99
Signed-off-by: Kai Krakow <[email protected]>
kakra added a commit to kakra/xpadneo that referenced this pull request Apr 3, 2021
Co-authored-by: Jacob Essex <[email protected]>
Co-authored-by: Florian Dollinger <[email protected]>
Closes: atar-axis#160
Closes: atar-axis#105
Closes: atar-axis#99
Signed-off-by: Kai Krakow <[email protected]>
kakra added a commit to kakra/xpadneo that referenced this pull request Apr 10, 2021
Co-authored-by: Jacob Essex <[email protected]>
Co-authored-by: Florian Dollinger <[email protected]>
Closes: atar-axis#160
Closes: atar-axis#105
Closes: atar-axis#99
Signed-off-by: Kai Krakow <[email protected]>
kakra added a commit to kakra/xpadneo that referenced this pull request Apr 12, 2021
Co-authored-by: Jacob Essex <[email protected]>
Co-authored-by: Florian Dollinger <[email protected]>
Closes: atar-axis#160
Closes: atar-axis#105
Closes: atar-axis#99
Signed-off-by: Kai Krakow <[email protected]>
kakra added a commit to kakra/xpadneo that referenced this pull request Jun 23, 2021
Co-authored-by: Jacob Essex <[email protected]>
Co-authored-by: Florian Dollinger <[email protected]>
Closes: atar-axis#160
Closes: atar-axis#105
Closes: atar-axis#99
Signed-off-by: Kai Krakow <[email protected]>
kakra added a commit to kakra/xpadneo that referenced this pull request Jun 23, 2021
Co-authored-by: Jacob Essex <[email protected]>
Co-authored-by: Florian Dollinger <[email protected]>
Closes: atar-axis#160
Closes: atar-axis#105
Closes: atar-axis#99
Signed-off-by: Kai Krakow <[email protected]>
kakra added a commit to kakra/xpadneo that referenced this pull request Jun 25, 2021
Co-authored-by: Jacob Essex <[email protected]>
Co-authored-by: Florian Dollinger <[email protected]>
Closes: atar-axis#160
Closes: atar-axis#105
Closes: atar-axis#99
Signed-off-by: Kai Krakow <[email protected]>
kakra added a commit to kakra/xpadneo that referenced this pull request Jul 6, 2021
Co-authored-by: Jacob Essex <[email protected]>
Co-authored-by: Florian Dollinger <[email protected]>
Closes: atar-axis#160
Closes: atar-axis#105
Closes: atar-axis#99
Signed-off-by: Kai Krakow <[email protected]>
kakra added a commit to kakra/xpadneo that referenced this pull request Jul 6, 2021
Co-authored-by: Jacob Essex <[email protected]>
Co-authored-by: Florian Dollinger <[email protected]>
Closes: atar-axis#160
Closes: atar-axis#105
Closes: atar-axis#99
Signed-off-by: Kai Krakow <[email protected]>
kakra added a commit to kakra/xpadneo that referenced this pull request Aug 28, 2021
Co-authored-by: Jacob Essex <[email protected]>
Co-authored-by: Florian Dollinger <[email protected]>
Closes: atar-axis#160
Closes: atar-axis#105
Closes: atar-axis#99
Signed-off-by: Kai Krakow <[email protected]>
kakra added a commit to kakra/xpadneo that referenced this pull request Mar 6, 2022
Co-authored-by: Jacob Essex <[email protected]>
Co-authored-by: Florian Dollinger <[email protected]>
Closes: atar-axis#160
Closes: atar-axis#105
Closes: atar-axis#99
Signed-off-by: Kai Krakow <[email protected]>
kakra added a commit to kakra/xpadneo that referenced this pull request Apr 30, 2022
Co-authored-by: Jacob Essex <[email protected]>
Co-authored-by: Florian Dollinger <[email protected]>
Closes: atar-axis#160
Closes: atar-axis#105
Closes: atar-axis#99
Signed-off-by: Kai Krakow <[email protected]>
kakra added a commit to kakra/xpadneo that referenced this pull request May 9, 2022
Co-authored-by: Jacob Essex <[email protected]>
Co-authored-by: Florian Dollinger <[email protected]>
Closes: atar-axis#160
Closes: atar-axis#105
Closes: atar-axis#99
Signed-off-by: Kai Krakow <[email protected]>
kakra added a commit to kakra/xpadneo that referenced this pull request May 26, 2022
Co-authored-by: Jacob Essex <[email protected]>
Co-authored-by: Florian Dollinger <[email protected]>
Closes: atar-axis#160
Closes: atar-axis#105
Closes: atar-axis#99
Signed-off-by: Kai Krakow <[email protected]>
kakra added a commit to kakra/xpadneo that referenced this pull request May 30, 2022
Co-authored-by: Jacob Essex <[email protected]>
Co-authored-by: Florian Dollinger <[email protected]>
Closes: atar-axis#160
Closes: atar-axis#105
Closes: atar-axis#99
Signed-off-by: Kai Krakow <[email protected]>
kakra added a commit to kakra/xpadneo that referenced this pull request May 30, 2022
Co-authored-by: Jacob Essex <[email protected]>
Co-authored-by: Florian Dollinger <[email protected]>
Closes: atar-axis#160
Closes: atar-axis#105
Closes: atar-axis#99
Signed-off-by: Kai Krakow <[email protected]>
kakra added a commit to kakra/xpadneo that referenced this pull request Sep 17, 2022
Co-authored-by: Jacob Essex <[email protected]>
Co-authored-by: Florian Dollinger <[email protected]>
Closes: atar-axis#160
Closes: atar-axis#105
Closes: atar-axis#99
Signed-off-by: Kai Krakow <[email protected]>
@Yacoby Yacoby closed this Jun 16, 2023
kakra added a commit to kakra/xpadneo that referenced this pull request Feb 23, 2024
Co-authored-by: Jacob Essex <[email protected]>
Co-authored-by: Florian Dollinger <[email protected]>
Closes: atar-axis#160
Closes: atar-axis#105
Closes: atar-axis#99
Signed-off-by: Kai Krakow <[email protected]>
kakra added a commit to kakra/xpadneo that referenced this pull request Mar 4, 2024
Co-authored-by: Jacob Essex <[email protected]>
Co-authored-by: Florian Dollinger <[email protected]>
Closes: atar-axis#160
Closes: atar-axis#105
Closes: atar-axis#99
Signed-off-by: Kai Krakow <[email protected]>
kakra added a commit to kakra/xpadneo that referenced this pull request Mar 4, 2024
Co-authored-by: Jacob Essex <[email protected]>
Co-authored-by: Florian Dollinger <[email protected]>
Closes: atar-axis#160
Closes: atar-axis#105
Closes: atar-axis#99
Signed-off-by: Kai Krakow <[email protected]>
kakra added a commit to kakra/xpadneo that referenced this pull request Mar 4, 2024
Co-authored-by: Jacob Essex <[email protected]>
Co-authored-by: Florian Dollinger <[email protected]>
Closes: atar-axis#160
Closes: atar-axis#105
Closes: atar-axis#99
Fixes: atar-axis#333
See-also: atar-axis#419
See-also: atar-axis#435
Signed-off-by: Kai Krakow <[email protected]>
kakra added a commit to kakra/xpadneo that referenced this pull request Mar 4, 2024
Co-authored-by: Jacob Essex <[email protected]>
Co-authored-by: Florian Dollinger <[email protected]>
Closes: atar-axis#160
Closes: atar-axis#105
Closes: atar-axis#99
Fixes: atar-axis#333
See-also: atar-axis#419
See-also: atar-axis#435
Signed-off-by: Kai Krakow <[email protected]>
kakra added a commit to kakra/xpadneo that referenced this pull request Apr 22, 2024
Co-authored-by: Jacob Essex <[email protected]>
Co-authored-by: Florian Dollinger <[email protected]>
Closes: atar-axis#160
Closes: atar-axis#105
Closes: atar-axis#99
Fixes: atar-axis#333
See-also: atar-axis#419
See-also: atar-axis#435
Signed-off-by: Kai Krakow <[email protected]>
kakra added a commit to kakra/xpadneo that referenced this pull request Nov 24, 2024
Co-authored-by: Jacob Essex <[email protected]>
Co-authored-by: Florian Dollinger <[email protected]>
Closes: atar-axis#99
Closes: atar-axis#105
Closes: atar-axis#160
Fixes: atar-axis#333
See-also: atar-axis#419
See-also: atar-axis#435
Signed-off-by: Kai Krakow <[email protected]>
kakra added a commit to kakra/xpadneo that referenced this pull request Dec 2, 2024
Co-authored-by: Jacob Essex <[email protected]>
Co-authored-by: Florian Dollinger <[email protected]>
Closes: atar-axis#99
Closes: atar-axis#105
Closes: atar-axis#160
Closes: atar-axis#511
Fixes: atar-axis#333
See-also: atar-axis#419
See-also: atar-axis#435
Signed-off-by: Kai Krakow <[email protected]>
kakra added a commit to kakra/xpadneo that referenced this pull request Dec 19, 2024
Co-authored-by: Jacob Essex <[email protected]>
Co-authored-by: Florian Dollinger <[email protected]>
Closes: atar-axis#99
Closes: atar-axis#105
Closes: atar-axis#160
Closes: atar-axis#511
Fixes: atar-axis#333
See-also: atar-axis#419
See-also: atar-axis#435
Signed-off-by: Kai Krakow <[email protected]>
kakra added a commit to kakra/xpadneo that referenced this pull request Dec 23, 2024
Co-authored-by: Jacob Essex <[email protected]>
Co-authored-by: Florian Dollinger <[email protected]>
Closes: atar-axis#99
Closes: atar-axis#105
Closes: atar-axis#160
Closes: atar-axis#511
Fixes: atar-axis#333
See-also: atar-axis#419
See-also: atar-axis#435
Signed-off-by: Kai Krakow <[email protected]>
kakra added a commit to kakra/xpadneo that referenced this pull request Dec 17, 2025
Co-authored-by: Jacob Essex <[email protected]>
Co-authored-by: Florian Dollinger <[email protected]>
Closes: atar-axis#99
Closes: atar-axis#105
Closes: atar-axis#160
Closes: atar-axis#511
Fixes: atar-axis#333
See-also: atar-axis#419
See-also: atar-axis#435
Signed-off-by: Kai Krakow <[email protected]>
kakra added a commit to kakra/xpadneo that referenced this pull request Dec 18, 2025
Co-authored-by: Jacob Essex <[email protected]>
Co-authored-by: Florian Dollinger <[email protected]>
Closes: atar-axis#99
Closes: atar-axis#105
Closes: atar-axis#160
Closes: atar-axis#511
Fixes: atar-axis#333
See-also: atar-axis#419
See-also: atar-axis#435
Signed-off-by: Kai Krakow <[email protected]>
kakra added a commit to kakra/xpadneo that referenced this pull request Dec 20, 2025
Add an optional "mouse profile" that turns supported Xbox controllers
into a couch-friendly mouse/keyboard input device. The mode can be
toggled via Guide+Select and reuses the existing input infrastructure
by registering an additional (synthetic) mouse device.

In mouse mode:
- left stick moves the pointer (REL_X/REL_Y)
- right stick scrolls (REL_WHEEL/REL_HWHEEL)
- triggers act as left/right mouse buttons with hysteresis
- shoulder buttons provide back/forward
- D-pad generates cursor keys (keyboard interface)
- A/B map to Enter/Escape (keyboard interface)
- X triggers the on-screen keyboard key event (consumer control)

Movement and scrolling are emitted periodically via a timer to provide
a stable update rate and to keep input processing isolated from HID
report timing.

Co-authored-by: Jacob Essex <[email protected]>
Co-authored-by: Florian Dollinger <[email protected]>
Closes: atar-axis#99
Closes: atar-axis#105
Closes: atar-axis#160
Closes: atar-axis#511
Fixes: atar-axis#333
See-also: atar-axis#419
See-also: atar-axis#435
Signed-off-by: Kai Krakow <[email protected]>
kakra added a commit to kakra/xpadneo that referenced this pull request Dec 20, 2025
Add an optional "mouse profile" that turns supported Xbox controllers
into a couch-friendly mouse/keyboard input device. The mode can be
toggled via Guide+Select and reuses the existing input infrastructure
by registering an additional (synthetic) mouse device.

In mouse mode:
- left stick moves the pointer (REL_X/REL_Y)
- right stick scrolls (REL_WHEEL/REL_HWHEEL)
- triggers act as left/right mouse buttons with hysteresis
- shoulder buttons provide back/forward
- D-pad generates cursor keys (keyboard interface)
- A/B map to Enter/Escape (keyboard interface)
- X triggers the on-screen keyboard key event (consumer control)

Movement and scrolling are emitted periodically via a timer to provide
a stable update rate and to keep input processing isolated from HID
report timing.

Co-authored-by: Jacob Essex <[email protected]>
Co-authored-by: Florian Dollinger <[email protected]>
Closes: atar-axis#99
Closes: atar-axis#105
Closes: atar-axis#160
Closes: atar-axis#511
Fixes: atar-axis#333
See-also: atar-axis#419
See-also: atar-axis#435
Signed-off-by: Kai Krakow <[email protected]>
kakra added a commit to kakra/xpadneo that referenced this pull request Dec 27, 2025
Add an optional "mouse profile" that turns supported Xbox controllers
into a couch-friendly mouse/keyboard input device. The mode can be
toggled via Guide+Select and reuses the existing input infrastructure
by registering an additional (synthetic) mouse device.

In mouse mode:
- left stick moves the pointer (REL_X/REL_Y)
- right stick scrolls (REL_WHEEL/REL_HWHEEL)
- triggers act as left/right mouse buttons with hysteresis
- shoulder buttons provide back/forward
- D-pad generates cursor keys (keyboard interface)
- A/B map to Enter/Escape (keyboard interface)
- X triggers the on-screen keyboard key event (consumer control)

Movement and scrolling are emitted periodically via a timer to provide
a stable update rate and to keep input processing isolated from HID
report timing.

Co-authored-by: Jacob Essex <[email protected]>
Co-authored-by: Florian Dollinger <[email protected]>
Closes: atar-axis#99
Closes: atar-axis#105
Closes: atar-axis#160
Closes: atar-axis#511
Fixes: atar-axis#333
See-also: atar-axis#419
See-also: atar-axis#435
Signed-off-by: Kai Krakow <[email protected]>
kakra added a commit to kakra/xpadneo that referenced this pull request Dec 27, 2025
Add an optional "mouse profile" that turns supported Xbox controllers
into a couch-friendly mouse/keyboard input device. The mode can be
toggled via Guide+Select and reuses the existing input infrastructure
by registering an additional (synthetic) mouse device.

In mouse mode:
- left stick moves the pointer (REL_X/REL_Y)
- right stick scrolls (REL_WHEEL/REL_HWHEEL)
- triggers act as left/right mouse buttons with hysteresis
- shoulder buttons provide back/forward
- D-pad generates cursor keys (keyboard interface)
- A/B map to Enter/Escape (keyboard interface)
- X triggers the on-screen keyboard key event (consumer control)

Movement and scrolling are emitted periodically via a timer to provide
a stable update rate and to keep input processing isolated from HID
report timing.

Co-authored-by: Jacob Essex <[email protected]>
Co-authored-by: Florian Dollinger <[email protected]>
Closes: atar-axis#99
Closes: atar-axis#105
Closes: atar-axis#160
Closes: atar-axis#511
Fixes: atar-axis#333
See-also: atar-axis#419
See-also: atar-axis#435
Signed-off-by: Kai Krakow <[email protected]>
kakra added a commit to kakra/xpadneo that referenced this pull request Dec 27, 2025
Add an optional "mouse profile" that turns supported Xbox controllers
into a couch-friendly mouse/keyboard input device. The mode can be
toggled via Guide+Select and reuses the existing input infrastructure
by registering an additional (synthetic) mouse device.

In mouse mode:
- left stick moves the pointer (REL_X/REL_Y)
- right stick scrolls (REL_WHEEL/REL_HWHEEL)
- triggers act as left/right mouse buttons with hysteresis
- shoulder buttons provide back/forward
- D-pad generates cursor keys (keyboard interface)
- A/B map to Enter/Escape (keyboard interface)
- X triggers the on-screen keyboard key event (consumer control)

Movement and scrolling are emitted periodically via a timer to provide
a stable update rate and to keep input processing isolated from HID
report timing.

Co-authored-by: Jacob Essex <[email protected]>
Co-authored-by: Florian Dollinger <[email protected]>
Closes: atar-axis#99
Closes: atar-axis#105
Closes: atar-axis#160
Closes: atar-axis#511
Fixes: atar-axis#333
See-also: atar-axis#419
See-also: atar-axis#435
Signed-off-by: Kai Krakow <[email protected]>
kakra added a commit to kakra/xpadneo that referenced this pull request Dec 27, 2025
Add an optional "mouse profile" that turns supported Xbox controllers
into a couch-friendly mouse/keyboard input device. The mode can be
toggled via Guide+Select and reuses the existing input infrastructure
by registering an additional (synthetic) mouse device.

In mouse mode:
- left stick moves the pointer (REL_X/REL_Y)
- right stick scrolls (REL_WHEEL/REL_HWHEEL)
- triggers act as left/right mouse buttons with hysteresis
- shoulder buttons provide back/forward
- D-pad generates cursor keys (keyboard interface)
- A/B map to Enter/Escape (keyboard interface)
- X triggers the on-screen keyboard key event (consumer control)

Movement and scrolling are emitted periodically via a timer to provide
a stable update rate and to keep input processing isolated from HID
report timing.

Co-authored-by: Jacob Essex <[email protected]>
Co-authored-by: Florian Dollinger <[email protected]>
Closes: atar-axis#99
Closes: atar-axis#105
Closes: atar-axis#160
Closes: atar-axis#511
Fixes: atar-axis#333
See-also: atar-axis#419
See-also: atar-axis#435
Signed-off-by: Kai Krakow <[email protected]>
kakra added a commit to kakra/xpadneo that referenced this pull request Dec 27, 2025
Add an optional "mouse profile" that turns supported Xbox controllers
into a couch-friendly mouse/keyboard input device. The mode can be
toggled via Guide+Select and reuses the existing input infrastructure
by registering an additional (synthetic) mouse device.

In mouse mode:
- left stick moves the pointer (REL_X/REL_Y)
- right stick scrolls (REL_WHEEL/REL_HWHEEL)
- triggers act as left/right mouse buttons with hysteresis
- shoulder buttons provide back/forward
- D-pad generates cursor keys (keyboard interface)
- A/B map to Enter/Escape (keyboard interface)
- X triggers the on-screen keyboard key event (consumer control)

Movement and scrolling are emitted periodically via a timer to provide
a stable update rate and to keep input processing isolated from HID
report timing.

Co-authored-by: Jacob Essex <[email protected]>
Co-authored-by: Florian Dollinger <[email protected]>
Closes: atar-axis#99
Closes: atar-axis#105
Closes: atar-axis#160
Closes: atar-axis#511
Fixes: atar-axis#333
See-also: atar-axis#419
See-also: atar-axis#435
Signed-off-by: Kai Krakow <[email protected]>
kakra added a commit to kakra/xpadneo that referenced this pull request Dec 28, 2025
Add an optional "mouse profile" that turns supported Xbox controllers
into a couch-friendly mouse/keyboard input device. The mode can be
toggled via Guide+Select and reuses the existing input infrastructure
by registering an additional (synthetic) mouse device.

In mouse mode:
- left stick moves the pointer (REL_X/REL_Y)
- right stick scrolls (REL_WHEEL/REL_HWHEEL)
- triggers act as left/right mouse buttons with hysteresis
- shoulder buttons provide back/forward
- D-pad generates cursor keys (keyboard interface)
- A/B map to Enter/Escape (keyboard interface)
- X triggers the on-screen keyboard key event (consumer control)

Movement and scrolling are emitted periodically via a timer to provide
a stable update rate and to keep input processing isolated from HID
report timing.

Co-authored-by: Jacob Essex <[email protected]>
Co-authored-by: Florian Dollinger <[email protected]>
Closes: atar-axis#99
Closes: atar-axis#105
Closes: atar-axis#160
Closes: atar-axis#511
Fixes: atar-axis#333
See-also: atar-axis#419
See-also: atar-axis#435
Signed-off-by: Kai Krakow <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

0 | type: enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants