Wheel mouse support
André Timmermans (100) 655 posts |
I was looking at adding wheel mouse support in my KinoAmp, but information on the wiki for RISC OS 5 is a little sparse. I found info on adding Ys to the icon validation string to get it to generate scroll requests for the wheel but Poll event, Window_Scroll doesn’t show anything. Is the documentation up to date or should it reflect the ROL documentation? Also OS_Pointer shows code 2 as been Select only. Is this still true? |
Fred Graute (114) 645 posts |
For scroll wheel support to work in RISC OS 5 a window must have a scroll bar for the direction you wish to scroll in. It must also have scroll events enabled in its window flags. If these conditions are met, the owner task will be sent scroll events when the wheel is moved, the poll mask must accept scroll events of course. The task should then call Wimp_OpenWindow with new scroll offsets. If the conditions are not met then PointerV will be called with reason code 9. This can then be picked by a module wishing to implement scroll wheel support, such as the WimpScroll module that comes with HID. There is as far as I can see no support for Ys in validation strings, it seems to be RISC OS 4/6 only, so icon scrolls would have to be done manually using Wimp_GetPointerInfo. HTH |