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

Implementors§