<div dir="ltr"><div>Hahah.<br>It seems SDL 1.2 can't tell you the distance the wheel scrolled, especially since that also depends on OS sensitivity settings, which is why they rewrote how it works. Plus SDL2 supports scrolling on a touch screen.<br></div><div>At a low level, mice might well return button presses.<br></div><div><br></div>I've been wanting to add mouse wheel support in some places in Custom for a long time.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 9 April 2017 at 14:01, James Paige <span dir="ltr"><<a href="mailto:Bob@hamsterrepublic.com" target="_blank">Bob@hamsterrepublic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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!)<div><div class="h5"><br><br>On Saturday, April 8, 2017, Ralph Versteegen <<a href="mailto:teeemcee@gmail.com" target="_blank">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>subversion@hamsterrepublic.co<wbr>m</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></div></div>
<br>______________________________<wbr>_________________<br>
Ohrrpgce mailing list<br>
<a href="mailto:ohrrpgce@lists.motherhamster.org">ohrrpgce@lists.motherhamster.<wbr>org</a><br>
<a href="http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org" rel="noreferrer" target="_blank">http://lists.motherhamster.<wbr>org/listinfo.cgi/ohrrpgce-<wbr>motherhamster.org</a><br>
<br></blockquote></div><br></div>