Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Mouse Api #2

Open
RobDavenport opened this issue Sep 26, 2022 · 0 comments
Open

Add Mouse Api #2

RobDavenport opened this issue Sep 26, 2022 · 0 comments

Comments

@RobDavenport
Copy link
Member

Once gamercade-io/gamercade_console#89 is merged, we need to add the following functions:

    pub fn mouse_left_pressed(player_id: i32) -> i32;
    pub fn mouse_left_released(player_id: i32) -> i32;
    pub fn mouse_left_held(player_id: i32) -> i32;
    pub fn mouse_right_pressed(player_id: i32) -> i32;
    pub fn mouse_right_released(player_id: i32) -> i32;
    pub fn mouse_right_held(player_id: i32) -> i32;
    pub fn mouse_middle_pressed(player_id: i32) -> i32;
    pub fn mouse_middle_released(player_id: i32) -> i32;
    pub fn mouse_middle_held(player_id: i32) -> i32;

    pub fn mouse_x_pos(player_id: i32) -> i32;
    pub fn mouse_y_pos(player_id: i32) -> i32;
    pub fn mouse_x_delta(player_id: i32) -> i32;
    pub fn mouse_y_delta(player_id: i32) -> i32;

    pub fn mouse_wheel_up(player_id: i32) -> i32;
    pub fn mouse_wheel_down(player_id: i32) -> i32;
    pub fn mouse_wheel_left(player_id: i32) -> i32;
    pub fn mouse_wheel_right(player_id: i32) -> i32;
    pub fn lock_mouse(locked: i32);

    pub fn raw_mouse_state(player_id: i32) -> i64;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant