Back to

Package keyboard

Latest Go to latest

The latest major version is .

Published: May 29, 2018 | License: MIT | Module:


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

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier