Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/input/ctl/stty.c

    rdcbb3ec r60e5a856  
    3333/**
    3434 * @file
    35  * @brief Serial TTY-like keyboard controller driver.
    36  *
    37  * Keyboard emulation on a serial terminal.
     35 * @brief       Serial TTY-like keyboard controller driver.
    3836 */
    3937
     
    4543#include <stroke.h>
    4644
    47 static void stty_ctl_parse(sysarg_t);
     45static void stty_ctl_parse_scancode(int);
    4846static int stty_ctl_init(kbd_dev_t *);
    49 static void stty_ctl_set_ind(kbd_dev_t *, unsigned int);
     47static void stty_ctl_set_ind(kbd_dev_t *, unsigned);
    5048
    5149kbd_ctl_ops_t stty_ctl = {
    52         .parse = stty_ctl_parse,
     50        .parse_scancode = stty_ctl_parse_scancode,
    5351        .init = stty_ctl_init,
    5452        .set_ind = stty_ctl_set_ind
     
    6563#include <stdio.h>
    6664
    67 /**
    68  * Sequnece definitions are primarily for Xterm. Additionally we define
    69  * sequences that are unique to Gnome terminal -- most are the same but
    70  * some differ.
    71  */
    7265static int seq_defs[] = {
    7366        /* Not shifted */
     
    8881        0,      KC_MINUS,       0x2d, GSP_END,
    8982        0,      KC_EQUALS,      0x3d, GSP_END,
    90 
    9183        0,      KC_BACKSPACE,   0x08, GSP_END,
    9284
     
    224216        0,      KC_RIGHT,       0x1b, 0x5b, 0x43, GSP_END,
    225217
    226         /*
    227          * Sequences specific to Gnome terminal
    228          */
    229         0,      KC_BACKSPACE,   0x7f, GSP_END, /* ASCII DEL */
    230         0,      KC_HOME,        0x1b, 0x4f, 0x48, GSP_END,
    231         0,      KC_END,         0x1b, 0x4f, 0x46, GSP_END,
    232 
    233218        0,      0
    234219};
     
    243228}
    244229
    245 static void stty_ctl_parse(sysarg_t scancode)
     230static void stty_ctl_parse_scancode(int scancode)
    246231{
    247232        unsigned mods, key;
Note: See TracChangeset for help on using the changeset viewer.