Changeset f89979b in mainline for uspace/srv/console/console.c


Ignore:
Timestamp:
2009-02-17T23:05:15Z (15 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
24ff4df
Parents:
96e0748d
Message:

Keyboard driver overhaul — organize by hardware structure. This is w.i.p. Modifier keys, as well as ppc32, ia64 and sparc64 will not work yet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/console/console.c

    r96e0748d rf89979b  
    3737#include <ipc/ipc.h>
    3838#include <keys.h>
     39#include <kbd/keycode.h>
    3940#include <ipc/fb.h>
    4041#include <ipc/services.h>
     
    332333                        conn = &connections[active_console];
    333334
    334                         if ((ev.key >= 0x101) && (ev.key < 0x101 +
     335                        if ((ev.key >= KC_F1) && (ev.key < KC_F1 +
    335336                            CONSOLE_COUNT)) {
    336                                 if (ev.key == 0x112)
     337                                if (ev.key == KC_F12)
    337338                                        change_console(KERNEL_CONSOLE);
    338339                                else
    339                                         change_console(ev.key - 0x101);
     340                                        change_console(ev.key - KC_F1);
    340341                                break;
    341342                        }
Note: See TracChangeset for help on using the changeset viewer.