1
0
Fork 0

Fix bug on RAW2SCAN. Add work around for M0110A.

- Bug fix: Macro RAW2SCAN doesn't work and converted into static inline function.
- Add Exceptional handling for M0110A arrow keys and calc keys.
- Fix keymap.
This commit is contained in:
tmk 2012-05-15 03:41:07 +09:00
parent d553289e7e
commit f5f48c2a24
7 changed files with 307 additions and 279 deletions

View file

@ -78,15 +78,6 @@ POSSIBILITY OF SUCH DAMAGE.
#define M0110_KEYPAD_OFFSET 0x40
#define M0110_CALC_OFFSET 0x60
/* convert key event raw response into scan code */
#define M0110_RAW2SCAN(key) ( \
(key == M0110_NULL) ? M0110_NULL : ( \
(key == M0110_ERROR) ? M0110_ERROR : ( \
((key&0x80) | ((key&0x7F)>>1)) \
) \
) \
)
extern uint8_t m0110_error;