Gnash  0.8.10
Defines | Functions | Variables
evtest.c File Reference
#include <stdint.h>
#include <linux/version.h>
#include <linux/input.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdio.h>

Defines

#define EV_SYN   0
#define BITS_PER_LONG   (sizeof(long) * 8)
#define NBITS(x)   ((((x)-1)/BITS_PER_LONG)+1)
#define OFF(x)   ((x)%BITS_PER_LONG)
#define BIT(x)   (1UL<<OFF(x))
#define LONG(x)   ((x)/BITS_PER_LONG)
#define test_bit(bit, array)   ((array[LONG(bit)] >> OFF(bit)) & 1)

Functions

int main (int argc, char **argv)

Variables

char * events [EV_MAX+1]
char * keys [KEY_MAX+1]
char * absval [6] = { "Value", "Min ", "Max ", "Fuzz ", "Flat ", "Resolution "}
char * relatives [REL_MAX+1]
char * absolutes [ABS_MAX+1]
char * misc [MSC_MAX+1]
char * leds [LED_MAX+1]
char * repeats [REP_MAX+1]
char * sounds [SND_MAX+1]
char ** names [EV_MAX+1]

Define Documentation

#define BIT (   x)    (1UL<<OFF(x))
#define BITS_PER_LONG   (sizeof(long) * 8)
#define EV_SYN   0
#define LONG (   x)    ((x)/BITS_PER_LONG)
#define NBITS (   x)    ((((x)-1)/BITS_PER_LONG)+1)

Referenced by main().

#define OFF (   x)    ((x)%BITS_PER_LONG)
#define test_bit (   bit,
  array 
)    ((array[LONG(bit)] >> OFF(bit)) & 1)

Referenced by main().


Function Documentation

int main ( int argc  ,
char **  argv 
)

Variable Documentation

char* absolutes[ABS_MAX+1]
char* absval[6] = { "Value", "Min ", "Max ", "Fuzz ", "Flat ", "Resolution "}

Referenced by main().

char* events[EV_MAX+1]
Initial value:
 {
        [0 ... EV_MAX] = NULL,
        [EV_SYN] = "Sync",                      [EV_KEY] = "Key",
        [EV_REL] = "Relative",                  [EV_ABS] = "Absolute",
        [EV_MSC] = "Misc",                      [EV_LED] = "LED",
        [EV_SND] = "Sound",                     [EV_REP] = "Repeat",
        [EV_FF] = "ForceFeedback",              [EV_PWR] = "Power",
        [EV_FF_STATUS] = "ForceFeedbackStatus",
}

Referenced by main().

char* keys[KEY_MAX+1]

Referenced by gnash::key_is_down().

char* leds[LED_MAX+1]
Initial value:
 {
        [0 ... LED_MAX] = NULL,
        [LED_NUML] = "NumLock",         [LED_CAPSL] = "CapsLock", 
        [LED_SCROLLL] = "ScrollLock",   [LED_COMPOSE] = "Compose",
        [LED_KANA] = "Kana",            [LED_SLEEP] = "Sleep", 
        [LED_SUSPEND] = "Suspend",      [LED_MUTE] = "Mute",
        [LED_MISC] = "Misc",
}
char* misc[MSC_MAX+1]
Initial value:
 {
        [ 0 ... MSC_MAX] = NULL,
        [MSC_SERIAL] = "Serial",        [MSC_PULSELED] = "Pulseled",
        [MSC_GESTURE] = "Gesture",      [MSC_RAW] = "RawData",
        [MSC_SCAN] = "ScanCode",
}
char** names[EV_MAX+1]
Initial value:
 {
        [0 ... EV_MAX] = NULL,
        [EV_SYN] = events,                      [EV_KEY] = keys,
        [EV_REL] = relatives,                   [EV_ABS] = absolutes,
        [EV_MSC] = misc,                        [EV_LED] = leds,
        [EV_SND] = sounds,                      [EV_REP] = repeats,
}

Referenced by main(), and gnash::NetworkAdapter::isHeaderAllowed().

char* relatives[REL_MAX+1]
Initial value:
 {
        [0 ... REL_MAX] = NULL,
        [REL_X] = "X",                  [REL_Y] = "Y",
        [REL_Z] = "Z",                  [REL_HWHEEL] = "HWheel",
        [REL_DIAL] = "Dial",            [REL_WHEEL] = "Wheel", 
        [REL_MISC] = "Misc",    
}
char* repeats[REP_MAX+1]
Initial value:
 {
        [0 ... REP_MAX] = NULL,
        [REP_DELAY] = "Delay",          [REP_PERIOD] = "Period"
}
char* sounds[SND_MAX+1]
Initial value:
 {
        [0 ... SND_MAX] = NULL,
        [SND_CLICK] = "Click",          [SND_BELL] = "Bell",
        [SND_TONE] = "Tone"
}