File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
package windows
2
2
3
3
// InputRecord is the data structure that ReadConsoleInput writes into.
4
- // See : https://docs.microsoft.com/en-us/windows/console/input-record-str
4
+ // Original source : https://docs.microsoft.com/en-us/windows/console/input-record-str
5
5
type InputRecord struct {
6
- // Original source: https://docs.microsoft.com/en-us/windows/console/input-record-str#members
7
6
// 0x1: Key event
8
7
// 0x2: Will never be read when using ReadConsoleInput
9
8
// 0x4: Window buffer size event
10
9
// 0x8: Deprecated
11
10
// 0x10: Deprecated
11
+ // Original source: https://docs.microsoft.com/en-us/windows/console/input-record-str#members
12
12
Type uint16
13
13
_ [2 ]byte // discard the next two bytes
14
14
@@ -19,11 +19,12 @@ type InputRecord struct {
19
19
// https://docs.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes
20
20
// - Event[5] is the ascii or Unicode keycode.
21
21
// - Event[6] stores the state of the modifier keys.
22
- // See https://docs.microsoft.com/en-us/windows/console/key-event-record-str
22
+ // Original source: https://docs.microsoft.com/en-us/windows/console/key-event-record-str
23
23
//
24
24
// WINDOW_BUFFER_SIZE_EVENT (TYPE == 4)
25
25
// - Event[0] is the new amount of character rows
26
26
// - Event[1] is the new amount of character columns
27
+ // Original source: https://docs.microsoft.com/en-us/windows/console/window-buffer-size-record-str
27
28
Event [6 ]uint16
28
29
}
29
30
You can’t perform that action at this time.
0 commit comments