/*--------------------------------------------------------------------------*/ /* human interface support */ /*--------------------------------------------------------------------------*/ #ifndef __MY_HUMAN_H #define __MY_HUMAN_H #include #include #include "actors.h" #include "iface.h" /*--------------------------------------------------------------------------*/ /* structures */ /*--------------------------------------------------------------------------*/ typedef struct { KeySym keys[2][STATE_MOVE_COUNT]; /* [0] for light, [1] for dark */ int non_keyboard; /* -1 = keyboard */ /* >= 0 && < JOY_MAX_DEV = joystick */ /* >= JOY_MAX_DEV = mouse */ } HUMAN_CONFIG; /*--------------------------------------------------------------------------*/ /* functions */ /*--------------------------------------------------------------------------*/ void human_start(int side, HUMAN_CONFIG *_config); void human_turn(int side, int mode, COMMAND *cmd); void human_frame(int *keys_down); void human_config_read(FILE *fp, HUMAN_CONFIG *config); void human_config_write(FILE *fp, HUMAN_CONFIG *config); void human_config_edit(HUMAN_CONFIG *config); #endif