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

Interrupt based key matrix scanning #63

Closed
mondalaci opened this issue Nov 2, 2017 · 1 comment
Closed

Interrupt based key matrix scanning #63

mondalaci opened this issue Nov 2, 2017 · 1 comment

Comments

@mondalaci
Copy link
Member

Currently, KeyMatrix_Scan() is used to scan the keyboard matrices which is suboptimal because it utilizes a much needed busy loop, so we're wasting precious cycles.

As an alternative solution, I implemented KeyMatrix_ScanRow() and called it from a PIT timer interrupt. On Linux Mint for some reason this causes the mouse pointer to go really slow and jump hundreds of pixels from time to time. Weirdly, it works fine on Windows 7 and Android.

By commenting out INTERRUPT_KEY_SCANNER, one can test the my interrupt based implementation.

Ultimately, we should use the interrupt based implementation.

@mondalaci
Copy link
Member Author

Done in ae4d608

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