Skip to content

Commit

Permalink
Simplify DevSubType by removing some unused items
Browse files Browse the repository at this point in the history
  • Loading branch information
elishacloud committed Jun 17, 2024
1 parent b673121 commit b4b47a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
2 changes: 1 addition & 1 deletion BuildNo.rc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define BUILD_NUMBER 65
#define BUILD_NUMBER 66
13 changes: 1 addition & 12 deletions IDirectInputTypes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b4b47a8

Please sign in to comment.