Using Kernel version 1.08, I observe in the serial debug output messages such as
on connecting a USB mouse to the device and
on disconnecting.
Is there a way to query whether a mouse is connected?
Or are there system messages that can be received and processed by a running application?