Create RARCH_DEVICE_MOUSE_SCREEN

This commit is contained in:
twinaphex 2015-10-08 08:19:38 +02:00
parent 41f2ec1ecf
commit 20b8d592e1
2 changed files with 5 additions and 1 deletions

View File

@ -62,6 +62,10 @@ extern "C" {
#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.
* Should not be used by a libretro implementation as coordinates returned
* make no sense.

View File

@ -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,
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;
int16_t res_x = 0, res_y = 0, res_screen_x = 0, res_screen_y = 0;
if (idx != 0)
return 0;