Changeset 215abc1 in mainline for uspace/srv/kbd/genarch


Ignore:
Timestamp:
2009-06-03T18:49:33Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
05b9912
Parents:
bbdbf86
Message:

keyboard server rewrite: rename "kbd events" to more generic "console events" and similar changes
rename key_buffer.* to keybuffer.*
coding style changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/kbd/genarch/stroke.c

    rbbdbf86 r215abc1  
    3232/**
    3333 * @file
    34  * @brief       Stroke simulator.
     34 * @brief Stroke simulator.
    3535 *
    3636 * When simulating a keyboard using a serial TTY we need to convert the
    3737 * recognized strokes (such as Shift-A) to sequences of key presses and
    3838 * releases (such as 'press Shift, press A, release A, release Shift').
     39 *
    3940 */
    4041
    4142#include <stroke.h>
    4243#include <kbd.h>
    43 #include <kbd/kbd.h>
    44 #include <kbd/keycode.h>
     44#include <io/console.h>
     45#include <io/keycode.h>
    4546
    4647/** Correspondence between modifers and the modifier keycodes. */
     
    5960        while (mods_keys[i][0] != 0) {
    6061                if (mod & mods_keys[i][0]) {
    61                         kbd_push_ev(KE_PRESS, mods_keys[i][1]);
     62                        kbd_push_ev(KEY_PRESS, mods_keys[i][1]);
    6263                }
    6364                ++i;
     
    6667        /* Simulate key press and release. */
    6768        if (key != 0) {
    68                 kbd_push_ev(KE_PRESS, key);
    69                 kbd_push_ev(KE_RELEASE, key);
     69                kbd_push_ev(KEY_PRESS, key);
     70                kbd_push_ev(KEY_RELEASE, key);
    7071        }
    7172
     
    7475        while (mods_keys[i][0] != 0) {
    7576                if (mod & mods_keys[i][0]) {
    76                         kbd_push_ev(KE_RELEASE, mods_keys[i][1]);
     77                        kbd_push_ev(KEY_RELEASE, mods_keys[i][1]);
    7778                }
    7879                ++i;
     
    8283/**
    8384 * @}
    84  */ 
     85 */
Note: See TracChangeset for help on using the changeset viewer.