Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members | Related Pages

Display_x.i File Reference

#include "CmdPipe.h"
#include "SAM.h"
#include "C64.h"
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/keysym.h>
#include <X11/cursorfont.h>

Include dependency graph for Display_x.i:

Include dependency graph

Go to the source code of this file.

Defines

#define MATRIX(a, b)   (((a) << 3) | (b))
#define KEY_F9   512
#define KEY_F10   513
#define KEY_F11   514
#define KEY_F12   515
#define KEY_FIRE   516
#define KEY_JU   517
#define KEY_JD   518
#define KEY_JL   519
#define KEY_JR   520
#define KEY_JUL   521
#define KEY_JUR   522
#define KEY_JDL   523
#define KEY_JDR   524
#define KEY_KP_PLUS   525
#define KEY_KP_MINUS   526
#define KEY_KP_MULT   527
#define KEY_NUM_LOCK   528
#define ThePrefs   (TheC64->ThePrefs)

Functions

int kc_decode (KeySym ks)
int decode_us (KeySym ks)
int decode_de (KeySym ks)
int keycode2c64 (XKeyEvent *event)
int init_graphics (void)
long int ShowRequester (char *a, char *b, char *)

Variables

Display * display
int screen
Window rootwin
Window mywin
GC black_gc
GC led_gc
XColor black
XColor fill_gray
XColor shine_gray
XColor shadow_gray
XColor red
XColor green
Colormap cmap
Font led_font
XImage * img
Visual * vis
XVisualInfo visualInfo
int bitdepth
char * bufmem
int hsize
C64Displayc64_disp
sigaction pulse_sa
itimerval pulse_tv
int keystate [256]
int joystate = 0xFF
bool num_locked = false
const long int eventmask = (KeyPressMask|KeyReleaseMask|FocusChangeMask|ExposureMask)


Define Documentation

#define KEY_F10   513
 

Definition at line 71 of file Display_x.i.

#define KEY_F11   514
 

Definition at line 72 of file Display_x.i.

#define KEY_F12   515
 

Definition at line 73 of file Display_x.i.

#define KEY_F9   512
 

Definition at line 70 of file Display_x.i.

#define KEY_FIRE   516
 

Definition at line 82 of file Display_x.i.

#define KEY_JD   518
 

Definition at line 84 of file Display_x.i.

Referenced by kc_decode().

#define KEY_JDL   523
 

Definition at line 91 of file Display_x.i.

Referenced by kc_decode().

#define KEY_JDR   524
 

Definition at line 92 of file Display_x.i.

Referenced by kc_decode().

#define KEY_JL   519
 

Definition at line 85 of file Display_x.i.

Referenced by kc_decode().

#define KEY_JR   520
 

Definition at line 86 of file Display_x.i.

Referenced by kc_decode().

#define KEY_JU   517
 

Definition at line 83 of file Display_x.i.

Referenced by kc_decode().

#define KEY_JUL   521
 

Definition at line 89 of file Display_x.i.

Referenced by kc_decode().

#define KEY_JUR   522
 

Definition at line 90 of file Display_x.i.

Referenced by kc_decode().

#define KEY_KP_MINUS   526
 

Definition at line 95 of file Display_x.i.

Referenced by kc_decode().

#define KEY_KP_MULT   527
 

Definition at line 96 of file Display_x.i.

Referenced by kc_decode().

#define KEY_KP_PLUS   525
 

Definition at line 94 of file Display_x.i.

Referenced by kc_decode().

#define KEY_NUM_LOCK   528
 

Definition at line 97 of file Display_x.i.

Referenced by kc_decode().

#define MATRIX a,
 )     (((a) << 3) | (b))
 

Definition at line 68 of file Display_x.i.

#define ThePrefs   (TheC64->ThePrefs)
 

Definition at line 100 of file Display_x.i.

Referenced by C64::C64(), DigitalRenderer::calc_buffer(), FSDrive::conv_to_64(), CPrefsDialog::CPrefsDialog(), DigitalRenderer::DigitalRenderer(), DirectSound::DirectSound(), IEC::IEC(), Job1541::Job1541(), BitmapView::KeyDown(), MOS6581::MOS6581(), my_kbd_handler(), and Frodo::ReadyToRun().


Function Documentation

int decode_de KeySym  ks  )  [static]
 

Definition at line 247 of file Display_x.i.

Referenced by keycode2c64().

int decode_us KeySym  ks  )  [static]
 

Definition at line 232 of file Display_x.i.

Referenced by keycode2c64().

int init_graphics void   ) 
 

Definition at line 370 of file Display_x.i.

References bitdepth, black, black_gc, bufmem, cmap, display, DISPLAY_Y, eventmask, fill_gray, fprintf, green, hsize, img, key_matrix, keystate, led_font, linear_mem, memset, modeinfo, my_kbd_handler(), mywin, red, rev_matrix, rootwin, screen, shadow_gray, shine_gray, vis, and visualInfo.

int kc_decode KeySym  ks  )  [static]
 

Definition at line 107 of file Display_x.i.

References KEY_F10, KEY_F11, KEY_F12, KEY_F9, KEY_FIRE, KEY_JD, KEY_JDL, KEY_JDR, KEY_JL, KEY_JR, KEY_JU, KEY_JUL, KEY_JUR, KEY_KP_MINUS, KEY_KP_MULT, KEY_KP_PLUS, and KEY_NUM_LOCK.

Referenced by keycode2c64().

int keycode2c64 XKeyEvent *  event  )  [static]
 

Definition at line 264 of file Display_x.i.

References decode_de(), decode_us(), and kc_decode().

long int ShowRequester char *  a,
char *  b,
char * 
 

Definition at line 797 of file Display_x.i.

Referenced by MOS6510::illegal_jump(), MOS6502_1541::illegal_jump(), MOS6510::illegal_op(), MOS6502_1541::illegal_op(), Frodo::load_rom_files(), C64::LoadSnapshot(), PrefsWindow::MessageReceived(), C64::SaveRAM(), and C64::SaveSnapshot().


Variable Documentation

int bitdepth [static]
 

Definition at line 37 of file Display_x.i.

Referenced by init_graphics().

XColor black [static]
 

Definition at line 30 of file Display_x.i.

Referenced by init_graphics().

GC black_gc [static]
 

Definition at line 29 of file Display_x.i.

Referenced by init_graphics().

char* bufmem [static]
 

Definition at line 38 of file Display_x.i.

Referenced by init_graphics().

C64Display* c64_disp [static]
 

Definition at line 42 of file Display_x.i.

Colormap cmap [static]
 

Definition at line 31 of file Display_x.i.

Referenced by init_graphics().

Display* display [static]
 

Definition at line 25 of file Display_x.i.

Referenced by init_graphics().

const long int eventmask = (KeyPressMask|KeyReleaseMask|FocusChangeMask|ExposureMask) [static]
 

Definition at line 51 of file Display_x.i.

Referenced by init_graphics().

XColor fill_gray [static]
 

Definition at line 30 of file Display_x.i.

XColor green [static]
 

Definition at line 30 of file Display_x.i.

Referenced by init_graphics().

int hsize [static]
 

Definition at line 39 of file Display_x.i.

Referenced by init_graphics().

XImage* img [static]
 

Definition at line 34 of file Display_x.i.

Referenced by init_graphics().

int joystate = 0xFF [static]
 

Definition at line 48 of file Display_x.i.

int keystate[256] [static]
 

Definition at line 47 of file Display_x.i.

Referenced by init_graphics().

Font led_font [static]
 

Definition at line 32 of file Display_x.i.

Referenced by init_graphics().

GC led_gc [static]
 

Definition at line 29 of file Display_x.i.

Window mywin [static]
 

Definition at line 27 of file Display_x.i.

Referenced by init_graphics().

bool num_locked = false [static]
 

Definition at line 49 of file Display_x.i.

struct sigaction pulse_sa [static]
 

Definition at line 43 of file Display_x.i.

itimerval pulse_tv [static]
 

Definition at line 44 of file Display_x.i.

XColor red [static]
 

Definition at line 30 of file Display_x.i.

Referenced by init_graphics().

Window rootwin [static]
 

Definition at line 27 of file Display_x.i.

Referenced by init_graphics().

int screen [static]
 

Definition at line 26 of file Display_x.i.

Referenced by init_graphics().

XColor shadow_gray [static]
 

Definition at line 30 of file Display_x.i.

XColor shine_gray [static]
 

Definition at line 30 of file Display_x.i.

Visual* vis [static]
 

Definition at line 35 of file Display_x.i.

Referenced by init_graphics().

XVisualInfo visualInfo [static]
 

Definition at line 36 of file Display_x.i.

Referenced by init_graphics().


Generated on Tue Feb 8 04:09:50 2005 for E32frodo by doxygen 1.3.3