pupil-labs / pyglui

cython powered OpenGL gui that works with glfw
MIT License
29 stars 20 forks source link

Support element-dependend cursor shape on hover #87

Closed papr closed 6 years ago

papr commented 6 years ago

It would be great if ui elements could tell the system to change the cursor shape on hovering it. E.g. GLFW_IBEAM_CURSOR for Text_Input or GLFW_HRESIZE_CURSOR for Trim Marks, etc

This would greatly improve the UX since users would notice areas of interaction that are currently hidden, e.g. draggable area of the Player seek handle.

We would need to extend handle_input to return a preferred cursor shape based on the input. The application managing the UI has to make the appropriate GLFW calls if the preferred cursor changes.

Further reading:

mkassner commented 6 years ago

Id rather work with the UI responding than the curser.

papr commented 6 years ago

Fixed with #88