Struct pscontroller_rs::guncon::GunCon [−][src]
#[repr(C)]pub struct GunCon { pub buttons: GunconButtons, // some fields omitted }
Represents the classic Controller
Fields
Standard buttons (Cross, Circle, L3, Start)
Methods
impl GunCon
[src]
impl GunCon
pub fn x(&self) -> u16
[src]
pub fn x(&self) -> u16
Return the X position of the GunCon's aim on the screen
pub fn y(&self) -> u16
[src]
pub fn y(&self) -> u16
Return the Y position of the GunCon's aim on the screen