Changeset 8b863a62 in mainline for kernel/genarch/src/kbrd/kbrd.c


Ignore:
Timestamp:
2014-04-16T17:14:06Z (12 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f857e8b
Parents:
dba3e2c (diff), 70b570c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/genarch/src/kbrd/kbrd.c

    rdba3e2c r8b863a62  
    5656#include <arch.h>
    5757#include <macros.h>
     58#include <str.h>
    5859
    5960#define IGNORE_CODE  0x7f
     
    6566
    6667static indev_operations_t kbrd_raw_ops = {
    67         .poll = NULL
     68        .poll = NULL,
     69        .signal = NULL
    6870};
    6971
     
    104106        bool shift;
    105107        bool capslock;
     108        wchar_t ch;
    106109       
    107110        spinlock_lock(&instance->keylock);
     
    127130               
    128131                if (shift)
    129                         indev_push_character(instance->sink, sc_secondary_map[sc]);
     132                        ch = sc_secondary_map[sc];
    130133                else
    131                         indev_push_character(instance->sink, sc_primary_map[sc]);
     134                        ch = sc_primary_map[sc];
     135               
     136                switch (ch) {
     137                case U_PAGE_UP:
     138                        indev_signal(instance->sink, INDEV_SIGNAL_SCROLL_UP);
     139                        break;
     140                case U_PAGE_DOWN:
     141                        indev_signal(instance->sink, INDEV_SIGNAL_SCROLL_DOWN);
     142                        break;
     143                default:
     144                        indev_push_character(instance->sink, ch);
     145                }
     146               
    132147                break;
    133148        }
Note: See TracChangeset for help on using the changeset viewer.