Aros/Developer/Docs/HIDD/Mouse

From Wikibooks, open books for an open world
Jump to: navigation, search
Navbar for the Aros wikibook
Aros User Docs
Aros User Docs
Aros User FAQs
Aros User Applications
Aros User DOS Shell
Aros/User/AmigaLegacy
Aros Dev Docs
Aros Developer Docs
Porting Software from AmigaOS/SDL
For Zune Beginners
Zune .MUI Classes
For SDL Beginners
Aros Developer BuildSystem
Specific platforms
68k Support
PPC Power Architecture Support
Arm Raspberry Pi Support
Android support
Linux and FreeBSD Support
Windows Mingw and MacOSX Support
Aros x86 Installing
Aros x86 Audio/Video Support
Aros x86 Network Support
Aros x86 Complete System HCL
Aros Storage Support IDE SATA etc
Aros Poseidon USB Support
x86-64 Support
misc
Aros Public License
See rom/hidd/keyboard and rom/hidd/mouse in AROS source code.

CMD_HIDDINIT private function from keyboard.device and gameport.device has been removed and now these devices use a new keyboard and mouse HIDDs as an underlying level. Actual driver HIDDs may be plugged in or removed at any time using AddHardwareDriver() and RemHardwareDriver().

The API can be further expanded if one day we want to implement OS4 amigainput.library or something like that.

There can be multiple input drivers (feeders) and now there can also be multiple input listeners.

So, lowlevel.library can also work on top of the new API and receive events on its own, independently of keyboard.device and gameport.device.


Reference[edit]

To debug: dump mouse events when they are fed to supplied handler. You may also write hidd.mouse client which reads and prints mouse events. This way you'll be able to monitor how events are passed through top-level mouse.hidd. Also introduced top-level "hubs" for mouse and keyboard events.

  • May be ps2mouse.hidd sends malformed events.