nspire-emus / firebird

Multi-platform emulator of TI Nspire calculators
GNU General Public License v3.0
697 stars 69 forks source link

CX CAS: Move Touchpad Cursor via Mouse Cursor #353

Open cgloeckner opened 1 week ago

cgloeckner commented 1 week ago

Hi,

clicking the touchpad center with the mouse and dragging allows the Calc cursor to appear and being moved, but that's far from being optimal. Using the Calc mouse cursor directly via the Host mouse cursor would improve the overall usability.

glocke

adriweb commented 1 week ago

(FWIW, once the cursor is active, you can also click and drag on the LCD with your mouse, not just the touchpad - which is more comfortable)

cgloeckner commented 1 week ago

Sorry for misphrasing. I meant exactly that. It feels a big awkward.

adriweb commented 1 week ago

Well, doing more than this is getting out of "just-emulation" land though, I'd say (if you're messing with memory content to adjust cursor coordinates from the host's ones), whereas right now it sends touchpad events and the OS does what it need to do from this. It might be acceptable though.

Nevertheless, the current situation is much better than before where no touchpad emulation worked, and you just didn't have cursor control :)

cgloeckner commented 1 week ago

Your right in both statements. It's better to have some control :-) And yes, manipulating the Calc cursor pos seems tricky since only the relative touchpad movements seem to be available to perform this (afaik).

Vogtinator commented 1 week ago

There's one option that would work without OS integration and that's cursor capturing/grabbing, i.e. when clicking the LCD, the host cursor disappears and movement is directly applied to the touchpad. It's still not quite trivial because it would have to translate relative movement to individual touchpad moves to not go beyond the edges.