MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / HandleCaret

Method HandleCaret

src/textbuf.cpp:463–473  ·  view source on GitHub ↗

* Handle the flashing of the caret. * @return True if the caret state changes. */

Source from the content-addressed store, hash-verified

461 * @return True if the caret state changes.
462 */
463bool Textbuf::HandleCaret()
464{
465 /* caret changed? */
466 bool b = !!(_caret_timer & 0x20);
467
468 if (b != this->caret) {
469 this->caret = b;
470 return true;
471 }
472 return false;
473}
474
475HandleKeyPressResult Textbuf::HandleKeyPress(char32_t key, uint16_t keycode)
476{

Callers 2

OnMouseLoopMethod · 0.80
HandleEditBoxMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected