| author | |
| committer | |
| log | 88fdb303ff7a33d87207bbd61a648c5c1dbe56ad |
| tree | 430d4b69cfd6a4c42159864bfe67fd27f017f762 |
| parent | 20ce0b9952167d531f0a0e679c1b0409e9049d09 |
| signature |
4 files changed, 17 insertions(+), 54 deletions(-)
std/os/uefi/protocols/absolute_pointer_protocol.zig+4-13| ... | @@ -43,22 +43,13 @@ pub const AbsolutePointerMode = extern struct { | ... | @@ -43,22 +43,13 @@ pub const AbsolutePointerMode = extern struct { |
| 43 | }; | 43 | }; |
| 44 | 44 | ||
| 45 | pub const AbsolutePointerState = extern struct { | 45 | pub const AbsolutePointerState = extern struct { |
| 46 | current_x: u64, | 46 | current_x: u64 = undefined, |
| 47 | current_y: u64, | 47 | current_y: u64 = undefined, |
| 48 | current_z: u64, | 48 | current_z: u64 = undefined, |
| 49 | active_buttons: packed struct { | 49 | active_buttons: packed struct { |
| 50 | _pad1: u6, | 50 | _pad1: u6, |
| 51 | alt_active: bool, | 51 | alt_active: bool, |
| 52 | touch_active: bool, | 52 | touch_active: bool, |
| 53 | _pad2: u24, | 53 | _pad2: u24, |
| 54 | }, | 54 | } = undefined, |
| 55 | |||
| 56 | pub fn init() AbsolutePointerState { | ||
| 57 | return AbsolutePointerState{ | ||
| 58 | .current_x = undefined, | ||
| 59 | .current_y = undefined, | ||
| 60 | .current_z = undefined, | ||
| 61 | .active_buttons = undefined, | ||
| 62 | }; | ||
| 63 | } | ||
| 64 | }; | 55 | }; |
std/os/uefi/protocols/graphics_output_protocol.zig+6-17| ... | @@ -40,23 +40,12 @@ pub const GraphicsOutputProtocolMode = extern struct { | ... | @@ -40,23 +40,12 @@ pub const GraphicsOutputProtocolMode = extern struct { |
| 40 | }; | 40 | }; |
| 41 | 41 | ||
| 42 | pub const GraphicsOutputModeInformation = extern struct { | 42 | pub const GraphicsOutputModeInformation = extern struct { |
| 43 | version: u32, | 43 | version: u32 = undefined, |
| 44 | horizontal_resolution: u32, | 44 | horizontal_resolution: u32 = undefined, |
| 45 | vertical_resolution: u32, | 45 | vertical_resolution: u32 = undefined, |
| 46 | pixel_format: GraphicsPixelFormat, | 46 | pixel_format: GraphicsPixelFormat = undefined, |
| 47 | pixel_information: PixelBitmask, | 47 | pixel_information: PixelBitmask = undefined, |
| 48 | pixels_per_scan_line: u32, | 48 | pixels_per_scan_line: u32 = undefined, |
| 49 | |||
| 50 | pub fn init() GraphicsOutputModeInformation { | ||
| 51 | return GraphicsOutputModeInformation{ | ||
| 52 | .version = undefined, | ||
| 53 | .horizontal_resolution = undefined, | ||
| 54 | .vertical_resolution = undefined, | ||
| 55 | .pixel_format = undefined, | ||
| 56 | .pixel_information = undefined, | ||
| 57 | .pixels_per_scan_line = undefined, | ||
| 58 | }; | ||
| 59 | } | ||
| 60 | }; | 49 | }; |
| 61 | 50 | ||
| 62 | pub const GraphicsPixelFormat = extern enum(u32) { | 51 | pub const GraphicsPixelFormat = extern enum(u32) { |
std/os/uefi/protocols/simple_pointer_protocol.zig+5-15| ... | @@ -36,19 +36,9 @@ pub const SimplePointerMode = struct { | ... | @@ -36,19 +36,9 @@ pub const SimplePointerMode = struct { |
| 36 | }; | 36 | }; |
| 37 | 37 | ||
| 38 | pub const SimplePointerState = struct { | 38 | pub const SimplePointerState = struct { |
| 39 | relative_movement_x: i32, | 39 | relative_movement_x: i32 = undefined, |
| 40 | relative_movement_y: i32, | 40 | relative_movement_y: i32 = undefined, |
| 41 | relative_movement_z: i32, | 41 | relative_movement_z: i32 = undefined, |
| 42 | left_button: bool, | 42 | left_button: bool = undefined, |
| 43 | right_button: bool, | 43 | right_button: bool = undefined, |
| 44 | |||
| 45 | pub fn init() SimplePointerState { | ||
| 46 | return SimplePointerState{ | ||
| 47 | .relative_movement_x = undefined, | ||
| 48 | .relative_movement_y = undefined, | ||
| 49 | .relative_movement_z = undefined, | ||
| 50 | .left_button = undefined, | ||
| 51 | .right_button = undefined, | ||
| 52 | }; | ||
| 53 | } | ||
| 54 | }; | 44 | }; |
std/os/uefi/protocols/simple_text_input_ex_protocol.zig+2-9| ... | @@ -42,15 +42,8 @@ pub const SimpleTextInputExProtocol = extern struct { | ... | @@ -42,15 +42,8 @@ pub const SimpleTextInputExProtocol = extern struct { |
| 42 | }; | 42 | }; |
| 43 | 43 | ||
| 44 | pub const KeyData = extern struct { | 44 | pub const KeyData = extern struct { |
| 45 | key: InputKey, | 45 | key: InputKey = undefined, |
| 46 | key_state: KeyState, | 46 | key_state: KeyState = undefined, |
| 47 | |||
| 48 | pub fn init() KeyData { | ||
| 49 | return KeyData{ | ||
| 50 | .key = undefined, | ||
| 51 | .key_state = undefined, | ||
| 52 | }; | ||
| 53 | } | ||
| 54 | }; | 47 | }; |
| 55 | 48 | ||
| 56 | pub const KeyState = extern struct { | 49 | pub const KeyState = extern struct { |