Xemu [doxygen]  hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
Data Structures | Macros | Functions | Variables
keyconfig.c File Reference
#include "xemu/emutools.h"
#include <errno.h>
Include dependency graph for keyconfig.c:

Go to the source code of this file.

Data Structures

struct  keyboard_st
 

Macros

#define SCREEN_FORMAT   SDL_PIXELFORMAT_ARGB8888
 
#define USE_LOCKED_TEXTURE   0
 
#define RENDER_SCALE_QUALITY   1
 
#define SCREEN_WIDTH   800
 
#define SCREEN_HEIGHT   400
 
#define FRAME_DELAY   40
 
#define STATUS_COLOUR_INDEX   1
 
#define BACKGROUND_COLOUR_INDEX   6
 
#define NORMAL_COLOUR_INDEX   1
 
#define SELECT_COLOUR_INDEX   1
 
#define OVER_COLOUR_INDEX   2
 
#define KEYTEST_COLOUR_INDEX   1
 
#define CONFLICT_COLOUR_INDEX   1
 
#define UNUSABLE_COLOUR_INDEX   1
 
#define LETTER_COLOUR_INDEX   0
 
#define STATUS(...)   do { char buffer[1024]; snprintf(buffer, sizeof buffer, __VA_ARGS__); write_status(buffer); } while(0)
 
#define OSD_TRAY(...)   OSD(-1,SCREEN_HEIGHT-20,__VA_ARGS__)
 

Functions

void clear_emu_events (void)
 
int write_char (int x1, int y1, char chr, Uint32 colour)
 
int main (int argc, char **argv)
 

Variables

Uint32sdl_pixel_buffer
 

Macro Definition Documentation

◆ BACKGROUND_COLOUR_INDEX

#define BACKGROUND_COLOUR_INDEX   6

Definition at line 30 of file keyconfig.c.

◆ CONFLICT_COLOUR_INDEX

#define CONFLICT_COLOUR_INDEX   1

Definition at line 36 of file keyconfig.c.

◆ FRAME_DELAY

#define FRAME_DELAY   40

Definition at line 28 of file keyconfig.c.

◆ KEYTEST_COLOUR_INDEX

#define KEYTEST_COLOUR_INDEX   1

Definition at line 35 of file keyconfig.c.

◆ LETTER_COLOUR_INDEX

#define LETTER_COLOUR_INDEX   0

Definition at line 38 of file keyconfig.c.

◆ NORMAL_COLOUR_INDEX

#define NORMAL_COLOUR_INDEX   1

Definition at line 32 of file keyconfig.c.

◆ OSD_TRAY

#define OSD_TRAY (   ...)    OSD(-1,SCREEN_HEIGHT-20,__VA_ARGS__)

Definition at line 40 of file keyconfig.c.

◆ OVER_COLOUR_INDEX

#define OVER_COLOUR_INDEX   2

Definition at line 34 of file keyconfig.c.

◆ RENDER_SCALE_QUALITY

#define RENDER_SCALE_QUALITY   1

Definition at line 25 of file keyconfig.c.

◆ SCREEN_FORMAT

#define SCREEN_FORMAT   SDL_PIXELFORMAT_ARGB8888

Definition at line 22 of file keyconfig.c.

◆ SCREEN_HEIGHT

#define SCREEN_HEIGHT   400

Definition at line 27 of file keyconfig.c.

◆ SCREEN_WIDTH

#define SCREEN_WIDTH   800

Definition at line 26 of file keyconfig.c.

◆ SELECT_COLOUR_INDEX

#define SELECT_COLOUR_INDEX   1

Definition at line 33 of file keyconfig.c.

◆ STATUS

#define STATUS (   ...)    do { char buffer[1024]; snprintf(buffer, sizeof buffer, __VA_ARGS__); write_status(buffer); } while(0)

Definition at line 39 of file keyconfig.c.

◆ STATUS_COLOUR_INDEX

#define STATUS_COLOUR_INDEX   1

Definition at line 29 of file keyconfig.c.

◆ UNUSABLE_COLOUR_INDEX

#define UNUSABLE_COLOUR_INDEX   1

Definition at line 37 of file keyconfig.c.

◆ USE_LOCKED_TEXTURE

#define USE_LOCKED_TEXTURE   0

Definition at line 24 of file keyconfig.c.

Function Documentation

◆ clear_emu_events()

void clear_emu_events ( void  )

Definition at line 65 of file keyconfig.c.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 335 of file keyconfig.c.

Here is the call graph for this function:

◆ write_char()

int write_char ( int  x1,
int  y1,
char  chr,
Uint32  colour 
)

Definition at line 143 of file keyconfig.c.

Variable Documentation

◆ sdl_pixel_buffer

Uint32* sdl_pixel_buffer

Definition at line 92 of file emutools.c.