-
Notifications
You must be signed in to change notification settings - Fork 581
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
windows: add console input record event member functions
Events in `INPUT_RECORD` are defined as `union` with multiple members. Since Go doesn't have a notion of `union`s, we need to decode the input event into their respective types. Here, we use member functions that match the union type names to get the respective event type.
- Loading branch information
1 parent
1ba63fc
commit a8df59a
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters