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.
2 parents d9cca99 + fe9576a commit 420b219Copy full SHA for 420b219
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
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments