mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +00:00
Create RARCH_DEVICE_MOUSE_SCREEN
This commit is contained in:
parent
41f2ec1ecf
commit
20b8d592e1
4
driver.h
4
driver.h
@ -62,6 +62,10 @@ extern "C" {
|
|||||||
|
|
||||||
#define AUDIO_MAX_RATIO 16
|
#define AUDIO_MAX_RATIO 16
|
||||||
|
|
||||||
|
/* Specialized _MOUSE that targets the full screen regardless of viewport.
|
||||||
|
*/
|
||||||
|
#define RARCH_DEVICE_MOUSE_SCREEN (RETRO_DEVICE_MOUSE | 0x10000)
|
||||||
|
|
||||||
/* Specialized _POINTER that targets the full screen regardless of viewport.
|
/* Specialized _POINTER that targets the full screen regardless of viewport.
|
||||||
* Should not be used by a libretro implementation as coordinates returned
|
* Should not be used by a libretro implementation as coordinates returned
|
||||||
* make no sense.
|
* make no sense.
|
||||||
|
@ -307,8 +307,8 @@ static int16_t x_mouse_state(x11_input_t *x11, unsigned id)
|
|||||||
static int16_t x_pointer_state(x11_input_t *x11,
|
static int16_t x_pointer_state(x11_input_t *x11,
|
||||||
unsigned idx, unsigned id, bool screen)
|
unsigned idx, unsigned id, bool screen)
|
||||||
{
|
{
|
||||||
int16_t res_x = 0, res_y = 0, res_screen_x = 0, res_screen_y = 0;
|
|
||||||
bool valid, inside;
|
bool valid, inside;
|
||||||
|
int16_t res_x = 0, res_y = 0, res_screen_x = 0, res_screen_y = 0;
|
||||||
|
|
||||||
if (idx != 0)
|
if (idx != 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user