summaryrefslogtreecommitdiff
path: root/include/ui/InputReader.h
diff options
context:
space:
mode:
author Jeff Brown <jeffbrown@google.com> 2010-12-06 17:13:33 -0800
committer Jeff Brown <jeffbrown@google.com> 2010-12-07 17:35:26 -0800
commit02d85b5021dc3e9c042e1e3426fae2f0a903595b (patch)
treecfd014e8539fbed0c51d586fec095d1969f0eed1 /include/ui/InputReader.h
parentb5a00fcb71426492f248ed49a0514a9b8d385065 (diff)
Add support for fallback keycodes.
This change enables the framework to synthesize key events to implement default behavior when an application does not handle a key. For example, this change enables numeric keypad keys to perform their associated special function when numlock is off. The application is informed that it is processing a fallback keypress so it can choose to ignore it. Added a new keycode for switching applications. Added ALT key deadkeys. New default key mappings: - ESC -> BACK - Meta+ESC -> HOME - Alt+ESC -> MENU - Meta+Space -> SEARCH - Meta+Tab -> APP_SWITCH Fixed some comments. Fixed some tests. Change-Id: Id7f3b6645f3a350275e624547822f72652f3defe
Diffstat (limited to 'include/ui/InputReader.h')
-rw-r--r--include/ui/InputReader.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/ui/InputReader.h b/include/ui/InputReader.h
index 8ec5421940..b466ff1f39 100644
--- a/include/ui/InputReader.h
+++ b/include/ui/InputReader.h
@@ -402,7 +402,6 @@ private:
} mLocked;
void initializeLocked();
- void initializeLedStateLocked(LockedState::LedState& ledState, int32_t led);
void configureParameters();
void dumpParameters(String8& dump);
@@ -414,6 +413,8 @@ private:
ssize_t findKeyDownLocked(int32_t scanCode);
+ void resetLedStateLocked();
+ void initializeLedStateLocked(LockedState::LedState& ledState, int32_t led);
void updateLedStateLocked(bool reset);
void updateLedStateForModifierLocked(LockedState::LedState& ledState, int32_t led,
int32_t modifier, bool reset);