Description
I recently started to develop new skin for desktop app optimized for non continuous rendering behavior and noticed that VisTextField
's input cursor is not blinking. I shortly found the code under VisTextField#blink()
that omits timer logic for that case.
It was actually a quite obvious solution to me and I would go the same way, but this was before I really get in touch with the widget and eventually find out it is little hard to spot the cursor position when it isn't animated at all. I had have an idea to offer to implement some sort of a middle case, when user decides if cursor should blink during non continuous rendering state. But few moments later I thought about how rare this blink really happens and also it only appears when field is selected. So maybe would be better to drop those lines
if (!Gdx.graphics.isContinuousRendering()) {
cursorOn = true;
return;
}
and just call Gdx.graphics.requestRendering()
when the blink triggers?
What do you think?