| ... | @@ -1,11 +1,12 @@ | ... | @@ -1,11 +1,12 @@ |
| 1 | const uefi = @import("std").os.uefi; | 1 | const uefi = @import("std").os.uefi; |
| 2 | const Event = uefi.Event; | 2 | const Event = uefi.Event; |
| 3 | const Guid = uefi.Guid; | 3 | const Guid = uefi.Guid; |
| | 4 | const InputKey = uefi.protocols.InputKey; |
| 4 | | 5 | |
| 5 | /// Character input devices, e.g. Keyboard | 6 | /// Character input devices, e.g. Keyboard |
| 6 | pub const SimpleTextInputProtocol = extern struct { | 7 | pub const SimpleTextInputProtocol = extern struct { |
| 7 | _reset: extern fn (*const SimpleTextInputProtocol, bool) usize, | 8 | _reset: extern fn (*const SimpleTextInputProtocol, bool) usize, |
| 8 | _read_key_stroke: extern fn (*const SimpleTextInputProtocol, *uefi.protocols.InputKey) usize, | 9 | _read_key_stroke: extern fn (*const SimpleTextInputProtocol, *InputKey) usize, |
| 9 | wait_for_key: Event, | 10 | wait_for_key: Event, |
| 10 | | 11 | |
| 11 | /// Resets the input device hardware. | 12 | /// Resets the input device hardware. |
| ... | @@ -14,7 +15,7 @@ pub const SimpleTextInputProtocol = extern struct { | ... | @@ -14,7 +15,7 @@ pub const SimpleTextInputProtocol = extern struct { |
| 14 | } | 15 | } |
| 15 | | 16 | |
| 16 | /// Reads the next keystroke from the input device. | 17 | /// Reads the next keystroke from the input device. |
| 17 | pub fn readKeyStroke(self: *const SimpleTextInputProtocol, input_key: *uefi.protocols.InputKey) usize { | 18 | pub fn readKeyStroke(self: *const SimpleTextInputProtocol, input_key: *InputKey) usize { |
| 18 | return self._read_key_stroke(self, input_key); | 19 | return self._read_key_stroke(self, input_key); |
| 19 | } | 20 | } |
| 20 | | 21 | |