1 /***** 2 * Xnee's Not an Event Emulator 3 * 4 * Xnee enables recording and replaying of X protocol data 5 * 6 * Copyright (C) 1999, 2000, 2001, 2002, 2003, 7 * 2010 Henrik Sandklef 8 * 9 * This program is free software; you can redistribute it and/or 10 * modify it under the terms of the GNU General Public License 11 * as published by the Free Software Foundation; either version 3 12 * of the License, or any later version. 13 * 14 * 15 * This program is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU General Public License for more details. 19 * 20 * You should have received a copy of the GNU General Public License 21 * along with this program; if not, write to the Free Software 22 * Foundation, Inc., 51 Franklin Street, Boston, 23 * MA 02110-1301, USA. 24 ****/ 25 26 27 #ifndef XNEE_XNEE_SETTINGS_H 28 #define XNEE_XNEE_SETTINGS_H 29 30 31 #define SYNCHRONIZATION_EVENT (CreateNotify | MapRequest | ConfigureRequest | DestroyNotify | MapNotify | ConfigureNotify | UnmapNotify ) 32 33 #define XNEE_NR_OF_MODIFIERS 8 34 35 #define XNEE_HIGHEST_DATA_NR 256 36 #define XNEE_REPLAY_BUFFER_SIZE XNEE_HIGHEST_DATA_NR 37 #define XNEE_SAVED_LINES_BYTES 1024 38 #define XNEE_RANGE_STRING_SIZE 512 39 #define DATA_NAME_SIZE_MAX 32 40 #define XNEE_NR_OF_XINPUT_DEVICES 100 41 42 43 extern const int XNEE_MAX_DELAY ; 44 45 extern const int XNEE_PRESS ; 46 extern const int XNEE_RELEASE ; 47 48 49 extern const int xnee_delay_timeout ; 50 extern const int XNEE_DELAY ; 51 extern const int XNEE_MISSING_DATA_DELAY ; 52 53 extern const int XNEE_MAX_SYNCH ; 54 extern const int XNEE_MOTION_DELAY ; 55 56 extern const int XNEE_BUFFER_MAX ; 57 extern const int XNEE_BUFFER_MIN ; 58 extern const int XNEE_BUFFER_SUM_MAX ; 59 extern const int XNEE_BUFFER_SUM_MIN ; 60 extern const int XNEE_BUFFER_TOT_MAX ; 61 62 extern const int MAX_NOT_IN_SYNC ; 63 extern const int MAX_OUT_OF_SYNC ; /* number of data allowed to be out of sync */ 64 extern const int MAX_UNSYNC_LOOPS ; /* number check-loops when out of sync 65 before exit */ 66 67 extern const int MAX_SKIPPED_UNSYNC ; /* number of times to ignore unsync state */ 68 extern const int XNEE_NOT_REPLAYABLE ; 69 70 71 extern const int XNEE_DEFAULT_MAX_THRESHOLD ; 72 extern const int XNEE_DEFAULT_MIN_THRESHOLD ; 73 extern const int XNEE_DEFAULT_TOT_THRESHOLD ; 74 75 extern const int XNEE_USEC_PER_SEC ; 76 extern const int XNEE_MSEC_PER_SEC ; 77 78 extern const char XNEE_FROM_LAST_READ ; 79 extern const char XNEE_FROM_FIRST_READ ; 80 81 extern const int XNEE_TOO_FAST_ADJ_PERCENTAGE ; 82 83 extern const int XNEE_DELAY_RECORDING ; 84 85 extern const int XNEE_RECEIVED ; 86 extern const int XNEE_REPLAYED ; 87 88 extern const int XNEE_TRUE ; 89 extern const int XNEE_FALSE ; 90 91 extern const int XNEE_GRAB_MODIFIER ; 92 extern const int XNEE_GRAB_KEY ; 93 94 extern const int XNEE_REPLAY_READ_META_DATA ; 95 extern const int XNEE_REPLAY_READ_REPLAY_DATA ; 96 extern const int XNEE_REPLAY_READ_ALL_DATA ; 97 98 extern const int REPLAY_CALLBACK ; 99 extern const int RECORD_CALLBACK ; 100 extern const int SYNC_CALLBACK ; 101 102 extern const int XNEE_NR_OF_GRABBED_MODIFIER ; 103 104 105 #endif /* XNEE_XNEE_SETTINGS_H */ 106 107