Home | History | Annotate | Download | only in jni

Lines Matching defs:code

218 void injectKeyEvent(uint16_t code, uint16_t value)
224 ev.code = code;
231 printf("injectKey (%d, %d)\n", code , value);
238 int code = (int)key;
239 if (code>='0' && code<='9') {
240 scancode = (code & 0xF) - 1;
243 } else if (code>=0xFF50 && code<=0xFF58) {
247 scancode = map[code & 0xF];
248 } else if (code>=0xFFE1 && code<=0xFFEE) {
256 scancode = map[code & 0xF];
257 } else if ((code>='A' && code<='Z') || (code>='a' && code<='z')) {
264 scancode = map[(code & 0x5F) - 'A'];
266 switch (code) {
324 ev.code = BTN_TOUCH;
334 ev.code = ABS_X;
344 ev.code = ABS_Y;
354 ev.code = 0;