More callback fixes

This commit is contained in:
Henrik Rydgård committed 2023-03-31 11:05:33 +02:00
1 parent 7dfa587fe2
commit ca300a4dfd
4 files changed
+15 -16

No files matched your search

+5 -1
View File
@@ -177,7 +177,7 @@ EmuScreen::EmuScreen(const Path &filename)
startDumping = false;
controlMapper_.SetCallbacks(
std::bind(&EmuScreen::onVKey, this, _1, _2),
[](int vkey, float analogValue) {},
std::bind(&EmuScreen::onVKeyAnalog, this, _1, _2),
[](uint32_t bitsToSet, uint32_t bitsToClear) {
__CtrlSetAllButtons(bitsToSet, bitsToClear);
},
@@ -763,6 +763,10 @@ void EmuScreen::onVKey(int virtualKeyCode, bool down) {
}
}
void EmuScreen::onVKeyAnalog(int virtualKeyCode, float value) {
}
bool EmuScreen::key(const KeyInput &key) {
Core_NotifyActivity();