quakeforge/ruamoko/qwaq/qwaq.h
Bill Currie d352749666 [qwaq] Bypass ncurses for input handling
For now, only 1003 mouse mode is supported, and function keys are not
yet supported, but the mouse is much more reliable: no lost events.
2020-03-22 01:00:05 +09:00

21 lines
465 B
C

#ifndef __qwaq_h
#define __qwaq_h
#include "QF/darray.h"
#include "QF/progs.h"
typedef struct qwaq_thread_s {
pthread_t thread_id;
int return_code;
struct DARRAY_TYPE (const char *) args;
sys_printf_t sys_printf;
progs_t *pr;
func_t main_func;
void *data;
} qwaq_thread_t;
void BI_Init (progs_t *pr);
extern struct cbuf_s *qwaq_cbuf;
qwaq_thread_t *create_thread (void *(*thread_func) (qwaq_thread_t *), void *);
#endif//__qwaq_h