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

Go to the source code of this file.

Functions

uint8 key_is_pressed (SDLKey key)
int draggingInvItem (int src)
void resize_window (int width, int height)
int Event_PollInputDevice ()

Variables

int old_mouse_y = 0
static uint8 keys_pressed [SDLK_LAST]

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 ( )

Poll input device like mouse, keys, etc.

Returns:
1 if the the quit key was pressed, 0 otherwise

Definition at line 82 of file event.c.

uint8 key_is_pressed ( SDLKey  key)

Check whether the specified key is being held.

Parameters:
keyKey to check.
Returns:
1 if the keys is being held, 0 otherwise.

Definition at line 44 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.

Parameters:
widthWidth to set.
heightHeight to set.

Definition at line 68 of file event.c.


Variable Documentation

uint8 keys_pressed[SDLK_LAST] [static]

Table of all the keys recognized by SDL. If an element is 1, that key is currently being held.

Definition at line 38 of file event.c.