Skip to content

[VisUI] Input cursor blinking with non continuous rendering #282

Open
@metaphore

Description

@metaphore

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?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions