pfalcon / ScratchABit

Easily retargetable and hackable interactive disassembler with IDAPython-compatible plugin API
GNU General Public License v3.0
392 stars 47 forks source link

[wishlist] Mouse wheel support #18

Open neuschaefer opened 7 years ago

neuschaefer commented 7 years ago

Hi, first of all, nice project!

I'd like to be able to use the mouse wheel to scroll the viewport. As far as I can see, ScratchABit would have to:

neuschaefer commented 7 years ago

Ok, If we switch to the X11 mouse protocol, and enable Alternate Scroll mode, we can receive events for buttons 4 and 5, which are the scroll wheel.

(the picotui repo may be a better place for this discussion)

pfalcon commented 7 years ago

Thanks for trying ScratchABit, feel free to share more of your impressions.

(the picotui repo may be a better place for this discussion)

Indeed, majority of the functionality would need to be implemented in picotui, SAB would just handle the picotui events.

neuschaefer commented 7 years ago

I have a mostly working patch. I'll polish it a bit and then make a pull request.