| ... | ... | @@ -1,11 +1,12 @@ |
| 1 | 1 | const uefi = @import("std").os.uefi; |
| 2 | 2 | const Event = uefi.Event; |
| 3 | 3 | const Guid = uefi.Guid; |
| 4 | const InputKey = uefi.protocols.InputKey; |
| 4 | 5 | |
| 5 | 6 | /// Character input devices, e.g. Keyboard |
| 6 | 7 | pub const SimpleTextInputProtocol = extern struct { |
| 7 | 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 | 10 | wait_for_key: Event, |
| 10 | 11 | |
| 11 | 12 | /// Resets the input device hardware. |
| ... | ... | @@ -14,7 +15,7 @@ pub const SimpleTextInputProtocol = extern struct { |
| 14 | 15 | } |
| 15 | 16 | |
| 16 | 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 | 19 | return self._read_key_stroke(self, input_key); |
| 19 | 20 | } |
| 20 | 21 | |