-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
Is mouse wheel supported? #15
Comments
I had only worked with keyboard. Mouse example was contributed by @liumazi some time ago. Idealy it would be vital to modify ps2dev library to have Eg.: right now you can emulate mouse wheel using low level api of ps2dev library, but once you write the high-level code for mouse wheel on top of ps2dev it would make sense to integrate it directly to ps2dev, so it can be used by other people. Also i wonder if it would be possible for single device to be used as both mouse and keyboard at the same time (using single ps2 port). That would affect the design decisions, because it would make sense to have single handle() method common for both mouse and keyboard. |
emm..I think liumazi is not activing in github this year.But his/her code is interesting.I try to check it out. |
It does seem possible, but it might not be widely supported:
|
The PS/2 Mouse Interface - https://blog.csdn.net/Augusdi/article/details/7288556 The host then issues the "Get device ID" command (0xF2) and waits for a response. If a standard PS/2 mouse (ie, non-Intellimouse) is attached, it will respond with a device ID of 0x00. In this case, the host will recognize the fact that the mouse does have a scrolling wheel and will continue to treat it as a standard PS/2 mouse. However, if a Microsoft Intellimouse is attached, it will respond with an ID of 0x03. This tells the host that the attached pointing device has a scrolling wheel and the host will then expect the mouse to use the following 4-byte movement data packet: ... |
Is mouse wheel supported?
The text was updated successfully, but these errors were encountered: