fractional component for mouse/touch coordinates #1145
Labels
area-Core
This affects CC's core (the Lua runtime, APIs, computer internals).
area-Minecraft
This affects CC's Minecraft-specific content.
enhancement
An extension of a feature or a new feature.
feedback wanted
Tell me what you want, what you really really want.
for Events such as
mouse_click
,mouse_drag
andmonitor_touch
, where the coordinates being reported are currently quantized to integers on the terminal's character grid, I would like to see some additional parameters from which I can derive a sub-character position for the event (i.e. the position within the character-cell where the event occurred.)I'm working on some software which uses the block mosaic characters (0x80 to 0x9F) to create blittable characters from blocks of 2*3 logical pixels. As I'm working with elements that are smaller than a character, I find it would be helpful to have a little more resolution than the existing character-based mouse handling is designed for.
Additional mouse resolution could also be helpful for software which may want to track mouse movement for tasks that don't map directly to screen coordinates, such as rotation of an object or viewport in a 3d application.
I wouldn't wish to break compatibility with the myriad of programs which assume the existing coordinates to be integers, thus I suggest that the added resolution come from new, additional parameters of the events; tacked on at the end where most software can simply ignore them.
The text was updated successfully, but these errors were encountered: