From ca5eddf7ff19539d625a997a5636e8bd22580644 Mon Sep 17 00:00:00 2001 From: meepingsnesroms Date: Sun, 18 Nov 2018 11:18:40 -0800 Subject: [PATCH 1/2] Clarify documentation --- libretro-common/include/libretro.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libretro-common/include/libretro.h b/libretro-common/include/libretro.h index 6748c44dad..642bd671b0 100644 --- a/libretro-common/include/libretro.h +++ b/libretro-common/include/libretro.h @@ -128,7 +128,8 @@ extern "C" { /* LIGHTGUN device is similar to Guncon-2 for PlayStation 2. * It reports X/Y coordinates in screen space (similar to the pointer) - * in the range [-0x8000, 0x7fff] in both axes, with zero being center. + * in the range [-0x8000, 0x7fff] in both axes, with zero being center and + * -0x8000 being out of bounds. * As well as reporting on/off screen state. It features a trigger, * start/select buttons, auxiliary action buttons and a * directional pad. A forced off-screen shot can be requested for @@ -139,7 +140,7 @@ extern "C" { /* The ANALOG device is an extension to JOYPAD (RetroPad). * Similar to DualShock2 it adds two analog sticks and all buttons can * be analog. This is treated as a separate device type as it returns - * axis values in the full analog range of [-0x8000, 0x7fff]. + * axis values in the full analog range of [-0x7fff, 0x7fff]. * Positive X axis is right. Positive Y axis is down. * Buttons are returned in the range [0, 0x7fff]. * Only use ANALOG type when polling for analog values. From 94f691e5d27f325cddecaac06ddc9782db19c834 Mon Sep 17 00:00:00 2001 From: meepingsnesroms Date: Sun, 18 Nov 2018 11:44:46 -0800 Subject: [PATCH 2/2] More info --- libretro-common/include/libretro.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libretro-common/include/libretro.h b/libretro-common/include/libretro.h index 642bd671b0..4e1a9785ba 100644 --- a/libretro-common/include/libretro.h +++ b/libretro-common/include/libretro.h @@ -140,7 +140,8 @@ extern "C" { /* The ANALOG device is an extension to JOYPAD (RetroPad). * Similar to DualShock2 it adds two analog sticks and all buttons can * be analog. This is treated as a separate device type as it returns - * axis values in the full analog range of [-0x7fff, 0x7fff]. + * axis values in the full analog range of [-0x7fff, 0x7fff], + * although some devices may return -0x8000. * Positive X axis is right. Positive Y axis is down. * Buttons are returned in the range [0, 0x7fff]. * Only use ANALOG type when polling for analog values.