Atrinik Client  4.0
Functions | Variables
event.c File Reference
#include <global.h>

Go to the source code of this file.


int event_dragging_check (void)
int event_dragging_need_redraw (void)
void event_dragging_start (tag_t tag, int mx, int my)
void event_dragging_set_callback (event_drag_cb_fnc fnc)
void event_dragging_stop (void)
static void event_dragging_stop_internal (void)
void resize_window (int width, int height)
int Event_PollInputDevice (void)
void event_push_key (SDL_EventType type, SDLKey key, SDLMod mod)
void event_push_key_once (SDLKey key, SDLMod mod)


static event_drag_cb_fnc event_drag_cb = NULL
static int dragging_old_mx = -1
static int dragging_old_my = -1

Detailed Description

This file controls various event functions, like character mouse movement, parsing macro keys etc.

Definition in file event.c.

Function Documentation

int Event_PollInputDevice ( void  )

Poll input device like mouse, keys, etc.

1 if the the quit key was pressed, 0 otherwise

Definition at line 130 of file event.c.

void resize_window ( int  width,
int  height 

Sets new width/height of the screen, storing the size in options.

Does not actually do the resizing.

widthWidth to set.
heightHeight to set.

Definition at line 115 of file event.c.

Variable Documentation

event_drag_cb_fnc event_drag_cb = NULL

Called when dragged object is not handled, and a handler was specified.

Definition at line 34 of file event.c.