MCPcopy
hub / github.com/EngoEngine/engo / TextMessage

Struct TextMessage

message.go:133–135  ·  view source on GitHub ↗

TextMessage is a message that is dispatched whenever a character is typed on the keyboard. This is not the same as a keypress, as it returns the rune of the character typed by the user, which could be a combination of keypresses.

Source from the content-addressed store, hash-verified

131// keyboard. This is not the same as a keypress, as it returns the rune of the
132// character typed by the user, which could be a combination of keypresses.
133type TextMessage struct {
134 Char rune
135}
136
137// Type returns the type of the message, "TextMessage"
138func (TextMessage) Type() string { return "TextMessage" }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected