Skip to content

Commit

Permalink
Merge pull request #16855 from iota97/analog-custom
Browse files Browse the repository at this point in the history
Add analog to custom button and gesture
  • Loading branch information
hrydgard authored Jan 28, 2023
2 parents be8a02f + 871fc17 commit 78c47a1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions UI/GamepadEmu.h
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,10 @@ namespace CustomKey {
#ifndef MOBILE_DEVICE
{ ImageID::invalid(), VIRTKEY_RECORD },
#endif
{ ImageID::invalid(), VIRTKEY_AXIS_X_MIN },
{ ImageID::invalid(), VIRTKEY_AXIS_Y_MIN },
{ ImageID::invalid(), VIRTKEY_AXIS_X_MAX },
{ ImageID::invalid(), VIRTKEY_AXIS_Y_MAX },
};
static_assert(ARRAY_SIZE(comboKeyList) <= 64, "Too many key for a uint64_t bit mask");
};
Expand Down Expand Up @@ -357,5 +361,9 @@ namespace GestureKey {
#ifndef MOBILE_DEVICE
VIRTKEY_RECORD,
#endif
VIRTKEY_AXIS_X_MIN,
VIRTKEY_AXIS_Y_MIN,
VIRTKEY_AXIS_X_MAX,
VIRTKEY_AXIS_Y_MAX,
};
}

0 comments on commit 78c47a1

Please sign in to comment.