Skip to content

Commit 49de8e4

Browse files
authored
Merge pull request #95 from hiimjasmine00/main
Update keybind setting documentation
2 parents 2672708 + 91e103c commit 49de8e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mods/settings.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ You can listen for keybinds globally via the `listenForKeybindSettingPresses` fu
384384
using namespace geode::prelude;
385385

386386
$on_game(Loaded) {
387-
listenForKeybindSettingPresses("keybind-example", [](Keybind const& keybind, bool down, bool repeat) {
387+
listenForKeybindSettingPresses("keybind-example", [](Keybind const& keybind, bool down, bool repeat, double timestamp) {
388388
if (down && !repeat) {
389389
// do something
390390
}
@@ -397,7 +397,7 @@ protected:
397397
if (!CCLayer::init())
398398
return false;
399399

400-
this->addEventListener(KeybindSettingPressedEventV3(Mod::get(), "keybind-example"), [this](Keybind const& keybind, bool down, bool repeat) {
400+
this->addEventListener(KeybindSettingPressedEventV3(Mod::get(), "keybind-example"), [this](Keybind const& keybind, bool down, bool repeat, double timestamp) {
401401
if (down && !repeat) {
402402
// do something
403403
}

0 commit comments

Comments
 (0)