jskeypressmap

package
v0.0.0-...-e449b39 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyPressMap

type KeyPressMap struct {
	KeyboardPressedMap map[string]bool
	// contains filtered or unexported fields
}

func New

func New() *KeyPressMap

func (*KeyPressMap) IsPressed

func (kpm *KeyPressMap) IsPressed(kcode string) bool

func (*KeyPressMap) KeyDown

func (kpm *KeyPressMap) KeyDown(kcode string) bool

func (*KeyPressMap) KeyUp

func (kpm *KeyPressMap) KeyUp(kcode string) bool

func (*KeyPressMap) SumMoveDxDy

func (kpm *KeyPressMap) SumMoveDxDy(
	key2dir map[string]way9type.Way9Type) (int, int)

Jump to

Keyboard shortcuts

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