1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
#![doc(
html_logo_url = "https://raw.githubusercontent.com/max-m/rust-libretro/master/media/logo.png",
html_favicon_url = "https://raw.githubusercontent.com/max-m/rust-libretro/master/media/favicon.png"
)]
include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
#[macro_export]
macro_rules! RETRO_DEVICE_SUBCLASS {
($base:expr, $id:expr) => {
(($id + 1) << RETRO_DEVICE_TYPE_SHIFT) | $base
};
}
#[deprecated = "This uses relative positions. Use `RETRO_DEVICE_ID_LIGHTGUN_SCREEN_X` instead."]
pub const RETRO_DEVICE_ID_LIGHTGUN_X: u32 = 0;
#[deprecated = "This uses relative positions. Use `RETRO_DEVICE_ID_LIGHTGUN_SCREEN_Y` instead."]
pub const RETRO_DEVICE_ID_LIGHTGUN_Y: u32 = 1;
#[deprecated = "Use `RETRO_DEVICE_ID_LIGHTGUN_AUX_A` instead."]
pub const RETRO_DEVICE_ID_LIGHTGUN_CURSOR: u32 = 3;
#[deprecated = "Use `RETRO_DEVICE_ID_LIGHTGUN_AUX_B` instead."]
pub const RETRO_DEVICE_ID_LIGHTGUN_TURBO: u32 = 4;
#[deprecated = "Use `RETRO_DEVICE_ID_LIGHTGUN_START` instead."]
pub const RETRO_DEVICE_ID_LIGHTGUN_PAUSE: u32 = 5;
pub const RETRO_HW_FRAME_BUFFER_VALID: *mut std::os::raw::c_void =
-1_i32 as *mut std::os::raw::c_void;