Ignore:
Timestamp:
Oct 24, 2021, 4:50:48 AM (3 years ago)
Author:
rossy
Message:

Daodan: Add new local input system based on Raw Input

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Daodan/src/Patches/Cheater.c

    r1017 r1163  
    297297
    298298
    299 static void BindableCheatCallback (CustomActionCallbackArgument cheatnum) {
     299static void BindableCheatCallback (intptr_t cheatnum) {
    300300        uint8_t res = DDrCheater (cheatnum);
    301301        if (res)
     
    308308        oniCheatCode* cur;
    309309        for (cur = DDr_CheatTable; cur->name != 0; cur++) {
    310 //              char* val = malloc(20);
    311 //              sprintf(val, "cheat_%s", cur->name);
    312                 Input_RegisterCustomAction (cur->name, EVENT_KEYPRESS, 0, BindableCheatCallback, cur->func);
     310                DDrInput_RegisterCustomAction(cur->name, DDcEventType_KeyPress,
     311                                              BindableCheatCallback, cur->func);
    313312        }
    314313}
Note: See TracChangeset for help on using the changeset viewer.