OpenMods / OpenPeripheral-Addons

An addon for OpenPeripheral, adding physical blocks and items to the game
MIT License
11 stars 10 forks source link

Glasses Mouse Drag #72

Closed natedogith1 closed 8 years ago

natedogith1 commented 8 years ago

Currently the wireless keyboard is only missing one event available to a monitor/terminal, mouse_drag. It'd be nice if some version of this was available with the wireless keyboard as well.

boq commented 8 years ago

Deliberate. I don't think it's good idea: it would spam too much packets, CC events and updates.

natedogith1 commented 8 years ago

how do terminals get away with it?

boq commented 8 years ago

Terminal works on character basis, we work on pixels. That's much more updates.

TechnicianLP commented 8 years ago

i think it would be a good approach to just send the press and release Locations (and maybe a few Points inbetween) once the mouse is released

natedogith1 commented 8 years ago

TechnicianLP, I don't particularly like that idea, as I personally think drag is something to be used to update rendering as the user moves components around. I'd probably go with a minimum distance/time between drag events (along with probably a maximum time) if I were to implement it.

boq commented 8 years ago

Ok, after consideration I've added 'glasses_component_mouse_drag`. It's up to server owner to configure minimal and default differences in position and time before next event be send (via config options).