raysan5 / raygui

A simple and easy-to-use immediate-mode gui library
zlib License
3.36k stars 289 forks source link

Added optional blinking cursor #327

Closed CrackedPixel closed 1 year ago

CrackedPixel commented 1 year ago

This is something that i definitely want in my project, so i took a crack at it (using some of the stuff that was already there and seemingly removed in https://github.com/raysan5/raygui/commit/fdc0ea52497404b6b8661ac641eb0d6b6c96e8c6)

raysan5 commented 1 year ago

@CrackedPixel Sorry, no plans to add an additional struct and a function just for a blinking cursor.

Also, considering the common usage for the UI, it could imply not calling it every-frame, only on input-events (I do it with my tools), so blinking cursor won't update as required.

In any case I can consider supporting with current implementation enabling some define flag.