<div dir="ltr"><div>Hi all,</div><div>I'm in my way of implementing mousewheel events on windows VM.</div><div><br></div><div>If I understand it correctly, we fill the buttons field of the event buffer with modifiers states, and we don't fill the modifiers field of the event buffer...</div><div><br></div><div>This sounds very strange to me.</div><div>See <a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/897ef1725e32c2eb3d24e3402b2e95b114b8b28b">https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/897ef1725e32c2eb3d24e3402b2e95b114b8b28b</a></div><div>(I've commented the lines that I find questionable)</div><div>Eliot, do you remember why?</div><div><br></div><div>It gives this image code:</div><div><br></div><div>generateMouseWheelEvent: evtBuf<br></div><div>    ...snip...<br></div><div>           modifiers := evtBuf fifth.<br>         buttons := (modifiers bitShift: 3) bitOr: (lastMouseEvent buttons bitAnd: 7).</div><div><br></div><div>while other mouse events are:</div><div><br></div><div>generateMouseEvent: evtBuf <br></div><div>    ...snip...<br></div><div>            buttons := evtBuf fifth.<br>          modifiers := evtBuf sixth.</div><div><br></div><div>I'd be happy to see more uniformity, sixth field is not used.<br></div></div>