DftMap.map - widberg/fmtk GitHub Wiki

Default controls mapping

See also: Registry ControlsZZ

// ImHex pattern
// DftMap_map.hexpat

struct Action {
    u32 primary;
    u32 secondary;
    /// Index of the Controls this action is in, in the controls variable
    u32 controls_index;
};

struct Context {
    u32 count;
    Action actions[count];
};

struct Controls {
    u32 count;
    Context contexts[count];
};

struct DftMap_map {
    u16 size;
    padding[2];
    u32 nb_player;
    Controls controls[nb_player];
};

DftMap_map dft_map_map @ 0x0;