FreeBASIC  0.91.0
io_mouse.c File Reference
#include "../fb.h"
#include "../unix/fb_private_console.h"
#include "../fb_private_hdynload.h"
#include <sys/select.h>
#include <gpm.h>
Include dependency graph for io_mouse.c:

Go to the source code of this file.

Data Structures

struct  GPM_FUNCS
 

Typedefs

typedef int(* GPM_OPEN )(Gpm_Connect *, int)
 
typedef int(* GPM_CLOSE )(void)
 
typedef int(* GPM_GETEVENT )(Gpm_Event *)
 

Functions

static void mouse_update (int cb, int cx, int cy)
 
static void mouse_handler (void)
 
static int mouse_init (void)
 
static void mouse_exit (void)
 
int fb_ConsoleGetMouse (int *x, int *y, int *z, int *buttons, int *clip)
 
int fb_ConsoleSetMouse (int x, int y, int cursor, int clip)
 

Variables

static FB_DYLIB gpm_lib = NULL
 
static GPM_FUNCS gpm = { NULL }
 
static Gpm_Connect conn
 
static int has_focus = TRUE
 
static int mouse_x = 0
 
static int mouse_y = 0
 
static int mouse_z = 0
 
static int mouse_buttons = 0
 

Typedef Documentation

typedef int(* GPM_CLOSE)(void)

Definition at line 20 of file io_mouse.c.

typedef int(* GPM_GETEVENT)(Gpm_Event *)

Definition at line 21 of file io_mouse.c.

typedef int(* GPM_OPEN)(Gpm_Connect *, int)

Definition at line 19 of file io_mouse.c.

Function Documentation

int fb_ConsoleGetMouse ( int *  x,
int *  y,
int *  z,
int *  buttons,
int *  clip 
)

Definition at line 155 of file io_mouse.c.

Here is the call graph for this function:

int fb_ConsoleSetMouse ( int  x,
int  y,
int  cursor,
int  clip 
)

Definition at line 199 of file io_mouse.c.

Here is the call graph for this function:

static void mouse_exit ( void  )
static

Definition at line 138 of file io_mouse.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static void mouse_handler ( void  )
static

Definition at line 60 of file io_mouse.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static int mouse_init ( void  )
static

Definition at line 110 of file io_mouse.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static void mouse_update ( int  cb,
int  cx,
int  cy 
)
static

Definition at line 36 of file io_mouse.c.

Here is the caller graph for this function:

Variable Documentation

Gpm_Connect conn
static

Definition at line 32 of file io_mouse.c.

GPM_FUNCS gpm = { NULL }
static

Definition at line 31 of file io_mouse.c.

FB_DYLIB gpm_lib = NULL
static

Definition at line 30 of file io_mouse.c.

int has_focus = TRUE
static

Definition at line 33 of file io_mouse.c.

int mouse_buttons = 0
static

Definition at line 34 of file io_mouse.c.

int mouse_x = 0
static

Definition at line 34 of file io_mouse.c.

int mouse_y = 0
static

Definition at line 34 of file io_mouse.c.

int mouse_z = 0
static

Definition at line 34 of file io_mouse.c.