Commit Graph

7 Commits

Author SHA1 Message Date
Hajime Hoshi
cbe4844fa0 Fix misspellings 2019-10-12 01:10:53 +09:00
Hajime Hoshi
695c93efd6 event: Add a converting function from driver.Event to event.Event
Update #926
2019-09-12 21:59:13 +09:00
Hajime Hoshi
529ab5f191
event: Auto-generate event definitions (#935)
As event package needs to depend on driver package, and drvier
package needs to emit events, we need event definitions in both
side. This change add a generator for event definitions.

Updates #926
2019-09-12 11:32:20 +09:00
Hajime Hoshi
25a2bf3c1f event: Add Modifier
Modifier keys are selected of a common set of GLFW keys [1] and Web
API keys [2].

This change also renames the member Modifiers to Modifer to
follow the convension (e.g., [3]).

Updates #926

[1] https://www.glfw.org/docs/latest/group__mods.html
[2] https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/getModifierState
[3] https://godoc.org/golang.org/x/tools/go/packages#Config
2019-09-03 01:12:50 +09:00
Hajime Hoshi
06d38790ff
event: Add Key (#933)
This also renames event names from Key* to KeyboardKey*.

Updates #926
2019-09-03 00:45:27 +09:00
Hajime Hoshi
31a47d05b1 event: Add comments about backforward compatibility 2019-08-31 01:05:50 +09:00
Beoran
d51d5f2eb0 Add package event (#930)
Package event is a package that models events that occur during
the execution of a program. The current implementation is mock
and we plan to add implementation later.

Updates #926
2019-08-31 01:03:21 +09:00