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

Go to the source code of this file.

Functions

void init_keys ()
void reset_keys ()
int key_event (SDL_KeyboardEvent *key)
int event_poll_key (SDL_Event *event)
void cursor_keys (int num)
void key_repeat ()
void check_menu_keys (int menu, int key)

Variables

static int menuRepeatKey = -1
static Uint32 menuRepeatTicks = 0
static Uint32 menuRepeatTime = KEY_REPEAT_TIME_INIT
_keys keys [MAX_KEYS]
static const int screen_definitions [16][2]

Detailed Description

Definition in file keys.c.


Function Documentation

void init_keys ( )

Initialize keys and movement queue.

Definition at line 61 of file keys.c.


Variable Documentation

const int screen_definitions[16][2] [static]
Initial value:
{
    {800, 600},
    {960, 600},
    {1024, 768},
    {1100, 700},
    {1280, 720},
    {1280, 800},
    {1280, 960},
    {1280, 1024},
    {1440, 900},
    {1400, 1050},
    {1600, 1200},
    {1680, 1050},
    {1920, 1080},
    {1920, 1200},
    {2048, 1536},
    {2560, 1600},
}

Screen definitions used when changing between resolutions in the client.

Definition at line 39 of file keys.c.