From b4b47a80e401386615cebd5b623c07bbf9eb9327 Mon Sep 17 00:00:00 2001 From: Elisha Riedlinger Date: Mon, 17 Jun 2024 09:35:42 -0700 Subject: [PATCH] Simplify DevSubType by removing some unused items --- BuildNo.rc | 2 +- IDirectInputTypes.cpp | 13 +------------ 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/BuildNo.rc b/BuildNo.rc index 96c2183..1c85579 100644 --- a/BuildNo.rc +++ b/BuildNo.rc @@ -1 +1 @@ -#define BUILD_NUMBER 65 +#define BUILD_NUMBER 66 diff --git a/IDirectInputTypes.cpp b/IDirectInputTypes.cpp index a797b55..3421d31 100644 --- a/IDirectInputTypes.cpp +++ b/IDirectInputTypes.cpp @@ -83,18 +83,7 @@ DWORD ConvertDevSubTypeTo7(DWORD dwDevType, DWORD dwDevType7, DWORD dwDevSubType switch (dwDevType7) { case DIDEVTYPE_MOUSE: - switch (dwDevSubType) - { - case DIDEVTYPEMOUSE_TRADITIONAL: - case DIDEVTYPEMOUSE_FINGERSTICK: - case DIDEVTYPEMOUSE_TOUCHPAD: - case DIDEVTYPEMOUSE_TRACKBALL: - return dwDevSubType; - case DI8DEVTYPEMOUSE_ABSOLUTE: - return DIDEVTYPEMOUSE_TOUCHPAD; - default: - return DIDEVTYPEMOUSE_UNKNOWN; - } + return DIDEVTYPEMOUSE_UNKNOWN; case DIDEVTYPE_KEYBOARD: return DIDEVTYPEKEYBOARD_UNKNOWN; case DIDEVTYPE_JOYSTICK: