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

One way initialization #10

Closed
shauleiz opened this issue Sep 21, 2016 · 1 comment
Closed

One way initialization #10

shauleiz opened this issue Sep 21, 2016 · 1 comment
Milestone

Comments

@shauleiz
Copy link
Owner

v2.1.7

Kernel:

The device initialize its position when starting.
The Initialization follows an algorithm that includes reading from the registry and falling back to hard-coded values.

User Mode:

When a device entry is created (vJoyDeviceEntry()) the code initializes the device following the same algorithm.

Drawbacks:

  • Duplicate logic
  • When starting a feeder it initializes the device entry to default while the "physical" device may be in another position that was set previously.

Enhancement

No changes in the initialization of the kernel
Initialization of the user mode will be done by reading the kernel current position.

Code:

  • Add IOCTL that reads the device position from the kernel
  • Add handle to the IOCTL in the kernel and change initialization code in the API code
@shauleiz shauleiz added this to the v2.1.8 milestone Sep 21, 2016
@shauleiz
Copy link
Owner Author

Implemented in commit 414f086

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant