You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i have a tentative idea for mouse support without needing to make any changes to the PicoMite VGA source code:
have mouse wheel up/down rotation permanently translate to the up/down arrow keys:
VK_UP: escape+"[A"
VK_DOWN: escape+"[B"
(addendum: ctrl-E and ctrl-X may be better choices for mouse wheel rotation, that way a running mmbasic program can distinguish between mouse movement and wheel rotation. within the editor, ctrl-E and ctrl-X are alternatives to arrow up and arrow down for use with a dumb terminal that lacks arrow keys)
have two key combinations to enable and disable mouse reporting: alt-M turns it on, alt-N turns it off. an alternative would be to hijack the use of scroll-lock, but this key may be missing from some compact keyboards. maybe provide for both options?
if mouse reporting is currently turned off, temporarily turn it on while the left or right mouse button is held depressed.
translate mouse movement to arrow key escape sequences when mouse reporting is on as follows:
VK_UP: escape+"[A"
VK_DOWN: escape+"[B"
VK_RIGHT: escape+"[C"
VK_LEFT: escape+"[D"
some scaling of mouse movement may be needed, and the rate of arrow movements limited to, say, 10 reports per second. this rate could perhaps be adjustable, as could X and Y scaling factors, selected using some alt- key combinations. or just use alt-1 to alt-9 to select between 9 different sets of presets.
as far as i can see, the above should give us:
mouse wheel always works in editor to scroll up/down
within the editor one can 'drag' the edit cursor using the mouse while holding down one of the mouse buttons
within games, there is a means for the user to turn on mouse reporting without need for holding down the mouse button continuously, and thereafter use the mouse instead of the arrow keys.
this is all just an idea to mull over for the moment! does it sound usable?
cheers,
rob :-)
The text was updated successfully, but these errors were encountered:
i have a tentative idea for mouse support without needing to make any changes to the PicoMite VGA source code:
VK_UP: escape+"[A"
VK_DOWN: escape+"[B"
(addendum: ctrl-E and ctrl-X may be better choices for mouse wheel rotation, that way a running mmbasic program can distinguish between mouse movement and wheel rotation. within the editor, ctrl-E and ctrl-X are alternatives to arrow up and arrow down for use with a dumb terminal that lacks arrow keys)
have two key combinations to enable and disable mouse reporting: alt-M turns it on, alt-N turns it off. an alternative would be to hijack the use of scroll-lock, but this key may be missing from some compact keyboards. maybe provide for both options?
if mouse reporting is currently turned off, temporarily turn it on while the left or right mouse button is held depressed.
translate mouse movement to arrow key escape sequences when mouse reporting is on as follows:
VK_UP: escape+"[A"
VK_DOWN: escape+"[B"
VK_RIGHT: escape+"[C"
VK_LEFT: escape+"[D"
some scaling of mouse movement may be needed, and the rate of arrow movements limited to, say, 10 reports per second. this rate could perhaps be adjustable, as could X and Y scaling factors, selected using some alt- key combinations. or just use alt-1 to alt-9 to select between 9 different sets of presets.
as far as i can see, the above should give us:
this is all just an idea to mull over for the moment! does it sound usable?
cheers,
rob :-)
The text was updated successfully, but these errors were encountered: