This repository has been archived on 2024-01-17. You can view files and clone it, but cannot push or open issues or pull requests.

34 lines
493 B

package kibodo
import (
// Key represents a virtual key.
type Key struct {
LowerLabel string
UpperLabel string
LowerInput *Input
UpperInput *Input
Wide bool
x, y int
w, h int
pressed bool
pressedTouchID ebiten.TouchID
// Input represents the input event from a key press.
type Input struct {
Rune rune
Key ebiten.Key
func (i *Input) String() string {
if i.Rune > 0 {
return string(i.Rune)
return i.Key.String()