Ignore:
File:
1 edited

Legend:

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

    rc928bb7 rc9d011e4  
    3838
    3939#include <adt/list.h>
    40 #include <stdbool.h>
     40#include <bool.h>
    4141#include <fibril_synch.h>
    4242#include <ipc/services.h>
     
    6262#include "input.h"
    6363
    64 #define NUM_LAYOUTS  4
     64#define NUM_LAYOUTS  3
    6565
    6666static layout_ops_t *layout[NUM_LAYOUTS] = {
    6767        &us_qwerty_ops,
    6868        &us_dvorak_ops,
    69         &cz_ops,
    70         &ar_ops
     69        &cz_ops
    7170};
    7271
     
    161160                layout_destroy(kdev->active_layout);
    162161                kdev->active_layout = layout_create(layout[2]);
    163                 return;
    164         }
    165        
    166         if (type == KEY_PRESS && (kdev->mods & KM_LCTRL) &&
    167             key == KC_F4) {
    168                 layout_destroy(kdev->active_layout);
    169                 kdev->active_layout = layout_create(layout[3]);
    170162                return;
    171163        }
     
    431423        kbd_add_dev(&chardev_port, &stty_ctl);
    432424#endif
     425#if defined(UARCH_arm32) && defined(MACHINE_testarm) && defined(CONFIG_FB)
     426        kbd_add_dev(&gxemul_port, &gxe_fb_ctl);
     427#endif
     428#if defined(UARCH_arm32) && defined(MACHINE_testarm) && !defined(CONFIG_FB)
     429        kbd_add_dev(&gxemul_port, &stty_ctl);
     430#endif
    433431#if defined(UARCH_arm32) && defined(MACHINE_integratorcp)
    434432        kbd_add_dev(&pl050_port, &pc_ctl);
Note: See TracChangeset for help on using the changeset viewer.