Skip to content

Commit

Permalink
add gauges api to trigger extended events
Browse files Browse the repository at this point in the history
  • Loading branch information
Gurgel100 committed Nov 24, 2024
1 parent 240818a commit bfc639e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions msfs/src/legacy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,13 @@ pub fn trigger_key_event(event_id: sys::ID32, value: sys::UINT32) {
}
}

/// trigger_key_event_EX1
pub fn trigger_key_event_ex1(event_id: sys::ID32, value0: sys::UINT32, value1: sys::UINT32, value2: sys::UINT32, value3: sys::UINT32, value4: sys::UINT32) {
unsafe {
sys::trigger_key_event_EX1(event_id, value0, value1, value2, value3, value4);
}
}

#[doc(hidden)]
pub trait ExecuteCalculatorCodeImpl {
fn execute(code: &std::ffi::CStr) -> Option<Self>
Expand Down

0 comments on commit bfc639e

Please sign in to comment.