We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9cca99 commit fe9576aCopy full SHA for fe9576a
CHANGELOG.md
@@ -7,6 +7,8 @@
7
- Renamed `FileSystemIOErrorContext` to `IoErrorContext`.
8
- `ResetType` is now a newtype-enum instead of a Rust enum. Its members now have
9
upper-case names.
10
+- `PointerMode` and `PointerState` now contain arrays rather than tuples, as
11
+ tuples are not FFI safe.
12
13
## uefi-macros - [Unreleased]
14
uefi/src/proto/console/pointer/mod.rs
@@ -64,9 +64,9 @@ impl Pointer {
64
pub struct PointerMode {
65
/// The pointer device's resolution on the X/Y/Z axis in counts/mm.
66
/// If a value is 0, then the device does _not_ support that axis.
67
- pub resolution: (u64, u64, u64),
+ pub resolution: [u64; 3],
68
/// Whether the devices has a left button / right button.
69
- pub has_button: (bool, bool),
+ pub has_button: [bool; 2],
70
}
71
72
/// The relative change in the pointer's state.
@@ -76,9 +76,9 @@ pub struct PointerState {
76
/// The relative movement on the X/Y/Z axis.
77
///
78
/// If `PointerMode` indicates an axis is not supported, it must be ignored.
79
- pub relative_movement: (i32, i32, i32),
+ pub relative_movement: [i32; 3],
80
/// Whether the left / right mouse button is currently pressed.
81
82
/// If `PointerMode` indicates a button is not supported, it must be ignored.
83
- pub button: (bool, bool),
+ pub button: [bool; 2],
84
0 commit comments