Skip to main content

ButtonsStateSource

Trait ButtonsStateSource 

Source
pub trait ButtonsStateSource {
    // Required method
    fn buttons_state(&self) -> ButtonsState;
}
Expand description

A source of button state

It is notably implemented for for the type ffi::playdate_sys and ffi::PlaydateAPI of the crate playdate-sys (require the feature flag playdate-sys-v02)

Required Methods§

Source

fn buttons_state(&self) -> ButtonsState

Returns the current ButtonsState

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§