doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros | Typedefs | Functions
posix_input.cpp File Reference
#include "../../idlib/precompiled.h"
#include "posix_public.h"

Go to the source code of this file.

Classes

struct  poll_keyboard_event_s
 
struct  poll_mouse_event_s
 

Macros

#define MAX_POLL_EVENTS   50
 
#define POLL_EVENTS_HEADROOM   2
 

Typedefs

typedef struct
poll_keyboard_event_s 
poll_keyboard_event_t
 
typedef struct poll_mouse_event_s poll_mouse_event_t
 

Functions

bool Posix_AddKeyboardPollEvent (int key, bool state)
 
bool Posix_AddMousePollEvent (int action, int value)
 
int Sys_PollKeyboardInputEvents (void)
 
int Sys_ReturnKeyboardInputEvent (const int n, int &key, bool &state)
 
void Sys_EndKeyboardInputEvents (void)
 
int Sys_PollMouseInputEvents (void)
 
int Sys_ReturnMouseInputEvent (const int n, int &action, int &value)
 
void Sys_EndMouseInputEvents (void)
 

Macro Definition Documentation

#define MAX_POLL_EVENTS   50

Definition at line 43 of file posix_input.cpp.

#define POLL_EVENTS_HEADROOM   2

Definition at line 44 of file posix_input.cpp.

Typedef Documentation

Function Documentation

bool Posix_AddKeyboardPollEvent ( int  key,
bool  state 
)

Definition at line 55 of file posix_input.cpp.

bool Posix_AddMousePollEvent ( int  action,
int  value 
)

Definition at line 72 of file posix_input.cpp.

void Sys_EndKeyboardInputEvents ( void  )

Definition at line 106 of file posix_input.cpp.

void Sys_EndMouseInputEvents ( void  )

Definition at line 133 of file posix_input.cpp.

int Sys_PollKeyboardInputEvents ( void  )

Definition at line 93 of file posix_input.cpp.

int Sys_PollMouseInputEvents ( void  )

Definition at line 111 of file posix_input.cpp.

int Sys_ReturnKeyboardInputEvent ( const int  n,
int key,
bool state 
)

Definition at line 97 of file posix_input.cpp.

int Sys_ReturnMouseInputEvent ( const int  n,
int action,
int value 
)

Definition at line 123 of file posix_input.cpp.