events

package
v3.0.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 1 Imported by: 1

README

Events

This package is used to generate the event management code and to allow quick addition of events.

Usage

  1. Add events to events.txt
  2. Run task generate:events

Notes

For events that you want to handle manually, add a ! to the end of the event name and add custom code into the appropriate platform. See this PR for an example of how to do this.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Common = newCommonEvents()
View Source
var Linux = newLinuxEvents()
View Source
var Mac = newMacEvents()
View Source
var Windows = newWindowsEvents()

Functions

func DefaultWindowEventMapping

func DefaultWindowEventMapping() map[WindowEventType]WindowEventType

func JSEvent

func JSEvent(event uint) string

Types

type ApplicationEventType

type ApplicationEventType uint

type WindowEventType

type WindowEventType uint

Jump to

Keyboard shortcuts

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