Lines Matching refs:key_code
124 set_key_down(DeviceIntPtr pDev, int key_code, int type)
127 SetBit(pDev->key->down, key_code);
129 SetBit(pDev->key->postdown, key_code);
133 set_key_up(DeviceIntPtr pDev, int key_code, int type)
136 ClearBit(pDev->key->down, key_code);
138 ClearBit(pDev->key->postdown, key_code);
142 key_is_down(DeviceIntPtr pDev, int key_code, int type)
147 ret = ret || BitIsOn(pDev->key->down, key_code);
149 ret = ret || BitIsOn(pDev->key->postdown, key_code);
155 key_autorepeats(DeviceIntPtr pDev, int key_code)
157 return ! !(pDev->kbdfeed->ctrl.autoRepeats[key_code >> 3] &
158 (1 << (key_code & 7)));
1066 int key_code)
1076 XSERVER_INPUT_EVENT(pDev->id, type, key_code, 0, 0,
1095 (key_code < 8 || key_code > 255))
1104 if (type == KeyPress && key_is_down(pDev, key_code, KEY_POSTED)) {
1108 !key_autorepeats(pDev, key_code) ||
1109 pDev->key->xkbInfo->desc->map->modmap[key_code])
1117 init_raw(pDev, raw, ms, type, key_code);
1124 event->detail.key = key_code;
1128 set_key_down(pDev, key_code, KEY_POSTED);
1132 set_key_up(pDev, key_code, KEY_POSTED);