keyboard

package
v0.0.0-...-5899396 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

Init the keyboard state and ebiten translation tables

func Poll

func Poll()

Poll queries ebiten's keyboard state and transforms that into ASCII values in $c000 and $c010. Keypresses from the previous round have to be taken into account in order to detect if a single new key has been pressed.

func Read

func Read() (uint8, uint8)

Read returns the data and strobe values from set from the Poll() call

func ResetStrobe

func ResetStrobe()

ResetStrobe clears the high bit in keyboardData

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL