I am surprised!<div><br></div><div>Both that this wasn't already supported, and that the wheel-as-buttons thing was an SDL 1.2 thing. I had mistakenly assumed that the wheel was buttons at a hardware level</div><div><br></div><div>I learn something new every day!</div><div><br></div><div>(And forget 4/5ths of it every night!)<br><br>On Saturday, April 8, 2017, Ralph Versteegen <<a href="mailto:teeemcee@gmail.com">teeemcee@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 9 April 2017 at 11:12,  <span dir="ltr"><<a href="javascript:_e(%7B%7D,'cvml','subversion@hamsterrepublic.com');" target="_blank">subversion@hamsterrepublic.<wbr>com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">teeemcee<br>
2017-04-08 16:12:25 -0700 (Sat, 08 Apr 2017)<br>
222<br>
gfx_sdl: Add mouse wheel up/down as mouse buttons.<br>
<br>
Also allow checking these buttons using "mouse button" and "mouse click",<br>
but it's undocumented, because other backends don't support it yet.<br>
Added a test to collider.rpg<br>
---<br>
U   wip/gfx_sdl.bas<br>
U   wip/<a href="http://scancodes.bi" rel="noreferrer" target="_blank">scancodes.bi</a><br>
U   wip/scriptcommands.bas<br>
U   wip/testgame/collider.hss<br>
U   wip/testgame/collider.rpg<br></blockquote><div><br></div><div>Wait, this isn't right. In fact, gfx_sdl was the only backend that didn't support the mouse wheel! All other backends return the amount it moved, so I'll change gfx_sdl to do the same. Then allmodex can translate that into up/down button presses for people who want that.<br></div><div>And anyway, SDL 2 no longer reports the mouse wheel as a pair of buttons like SDL 1.2. Instead it reports the amount the wheel moved. <br></div></div><br></div></div>
</blockquote></div>