mirror of
https://github.com/pret/pokeplatinum.git
synced 2026-04-19 13:37:22 -05:00
34 lines
1.0 KiB
C
34 lines
1.0 KiB
C
#ifndef POKEPLATINUM_FIELD_CONTROL_H
|
|
#define POKEPLATINUM_FIELD_CONTROL_H
|
|
|
|
#include "field/field_system_decl.h"
|
|
|
|
typedef struct FieldInput {
|
|
u16 interact : 1;
|
|
u16 endMovement : 1;
|
|
u16 menu : 1;
|
|
u16 registeredItem : 1;
|
|
u16 sign : 1;
|
|
u16 mapTransition : 1;
|
|
u16 movement : 1;
|
|
u16 dummy1 : 1;
|
|
u16 dummy2 : 1;
|
|
u16 dummy3 : 1;
|
|
u16 dummy4 : 1;
|
|
u16 dummy5 : 1;
|
|
u16 padding : 4;
|
|
u8 playerDir;
|
|
s8 transitionDir;
|
|
u16 pressedKeys;
|
|
u16 heldKeys;
|
|
} FieldInput;
|
|
|
|
void FieldInput_Update(FieldInput *input, FieldSystem *fieldSystem, u16 pressedKeys, u16 heldKeys);
|
|
int FieldInput_Process(const FieldInput *input, FieldSystem *fieldSystem);
|
|
BOOL FieldInput_Process_Underground(FieldInput *input, FieldSystem *fieldSystem);
|
|
BOOL FieldInput_Process_Colosseum(FieldInput *input, FieldSystem *fieldSystem);
|
|
BOOL FieldInput_Process_UnionRoom(const FieldInput *input, FieldSystem *fieldSystem);
|
|
int FieldInput_Process_BattleTower(const FieldInput *input, FieldSystem *fieldSystem);
|
|
|
|
#endif // POKEPLATINUM_FIELD_CONTROL_H
|