Skip to content

Commit 9a264f3

Browse files
committed
Make gamepad event props public
1 parent cff8c05 commit 9a264f3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lighthouse-protocol/src/input/gamepad_axis_event.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use serde::{Deserialize, Serialize};
55
#[serde(tag = "control", rename_all = "camelCase")]
66
pub struct GamepadAxisEvent {
77
/// The axis index.
8-
index: usize,
8+
pub index: usize,
99
/// The value of the axis (between -1.0 and 1.0, modeled after the Web Gamepad API).
10-
value: f64,
10+
pub value: f64,
1111
}

lighthouse-protocol/src/input/gamepad_button_event.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ use serde::{Deserialize, Serialize};
55
#[serde(tag = "control", rename_all = "camelCase")]
66
pub struct GamepadButtonEvent {
77
/// The button index.
8-
index: usize,
8+
pub index: usize,
99
/// Whether the button is pressed.
10-
down: bool,
10+
pub down: bool,
1111
/// The value of the button (between 0.0 and 1.0, modeled after the Web Gamepad API).
12-
value: f64,
12+
pub value: f64,
1313
}

0 commit comments

Comments
 (0)