stadiacuj

package
v0.0.0-...-683b059 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2022 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// StadiaGameURL is the url of the page of the testing game.
	StadiaGameURL = "" /* 126-byte string literal not displayed */
	// StadiaGameName is the name of the testing game.
	StadiaGameName = "Mortal Kombat 11"
)

Variables

This section is empty.

Functions

func ExitGame

func ExitGame(ctx context.Context, kb *input.KeyboardEventWriter, ac *uiauto.Context, webpage *nodewith.Finder) error

ExitGame holds esc key and exits the game.

func HoldKey

func HoldKey(ctx context.Context, kb *input.KeyboardEventWriter, s string, duration time.Duration) error

HoldKey holds a key for a given duration. Holding keys (especially arrow keys) is very common in video game playing.

func PressKey

func PressKey(ctx context.Context, kb *input.KeyboardEventWriter, s string, duration time.Duration) error

PressKey presses a given key and waited for a given duration. Video games take time to process keyboard events so the intervals between two events are necessary.

Types

This section is empty.

Jump to

Keyboard shortcuts

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