1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-07-17 03:29:10 +00:00
erc-c/include/vm_event.h

23 lines
460 B
C

#ifndef _VM_EVENT_H_
#define _VM_EVENT_H_
#include "vm_screen.h"
typedef struct {
SDL_Event event;
vm_screen *screen;
} vm_event;
typedef void (*vm_event_fn) (void *);
#define EVENT_DO(x) \
void x(void *_mach)
extern int vm_event_do(int);
extern void vm_event_keyboard(vm_event *);
extern void vm_event_keyboard_normal(vm_event *, char);
extern void vm_event_keyboard_special(vm_event *, char);
extern void vm_event_poll(vm_screen *);
#endif