• Jeffrey Lee's avatar
    Add scroll mouse support · 66b2aac7
    Jeffrey Lee authored
    * Listen out for PointerV 9, which (RISC OS 5) mouse drivers use to
    indicate scroll wheel updates + extra button status
    * Changes in the state of the extra buttons are treated the same as
    changes to normal mouse buttons: signalled via Event_Mouse, and stored
    in the mouse buffer (for reading via OS_Mouse).
    * Changes in the scroll wheel(s) are signalled via Event_Expansion,4. If
    the event vector call is unclaimed, the kernel's wheel position
    accumulators will be updated
    * Wheel position accumulators can be read via OS_Pointer 2
    * Wheel position accumulators implement "wrap to zero" logic on overflow
    
    This matches RISCOS Ltd's implementation
    (http://www.riscos.com/support/developers/riscos6/input/pointerdevices.html),
    except that:
    
    * The kernel currently doesn't call PointerV 4, so PointerV 9 is the
    only way drivers can report wheel + extra button status
    * Extra mouse buttons don't generate KeyV transitions
    * Our implementation is in the kernel, not an OSPointer module
    
    Version 6.37. Tagged as 'Kernel-6_37'
    66b2aac7
Name
Last commit
Last update
Dev Loading commit data...
Docs Loading commit data...
Resources/UK Loading commit data...
TestSrc Loading commit data...
h Loading commit data...
hdr Loading commit data...
o Loading commit data...
rm Loading commit data...
s Loading commit data...
.gitattributes Loading commit data...
BlackLog Loading commit data...
Changes Loading commit data...
HelpStrs Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
MkClean,fd7 Loading commit data...
MkExport,fd7 Loading commit data...
MkInstall,fd7 Loading commit data...
MkRom,fd7 Loading commit data...
Version Loading commit data...
VersionASM Loading commit data...
VersionNum Loading commit data...