llvm-mos-sdk
mouse.h
Go to the documentation of this file.
1 // Copyright 2025 LLVM-MOS Project
2 // Licensed under the Apache License, Version 2.0 with LLVM Exceptions.
3 // See https://github.com/llvm-mos/llvm-mos-sdk/blob/main/LICENSE for license
4 // information.
5 
6 #include <stdbool.h>
7 #include <stdint.h>
8 
9 #ifndef _NEO_MOUSE_H
10 #define _NEO_MOUSE_H
11 
12 #include <neo6502.h>
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
22 
27 
32  uint8_t *buttonState,
33  uint8_t *scrollWheelState);
34 
39 
43 // note: this API call can set error status; see neo_api_error()
45 
46 #ifdef __cplusplus
47 }
48 #endif
49 
50 #endif
byte x
Definition: api.h:26
byte byte y
Definition: api.h:26
void neo_mouse_get_mouse_state(uint16_t *xPos, uint16_t *yPos, uint8_t *buttonState, uint8_t *scrollWheelState)
Get mouse state.
void neo_mouse_select_mouse_cursor(uint8_t index)
select mouse cursor.
void neo_mouse_set_mouse_display_cursor(uint8_t onOff)
Get mouse display cursor on/off.
uint8_t neo_mouse_test_mouse_present(void)
test mouse present.
void neo_mouse_move_display_cursor(uint16_t x, uint16_t y)
Move display cursor.
::uint16_t uint16_t
Definition: cstdint:22
::uint8_t uint8_t
Definition: cstdint:21
char index
Definition: nesdoug.h:113