Skip to content

Commit

Permalink
Document the custom NTX input event codes while I'm in there...
Browse files Browse the repository at this point in the history
  • Loading branch information
NiLuJe committed May 12, 2024
1 parent 4724d5f commit 365b119
Showing 1 changed file with 29 additions and 11 deletions.
40 changes: 29 additions & 11 deletions fbink_input_scan.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,17 +123,35 @@ static __attribute__((cold)) void concat_type_recap(INPUT_DEVICE_TYPE_T t
// Each of our target platforms tend to settle on some specific,
// sometimes barely related, keycodes for common functions...
# if defined(FBINK_FOR_KOBO)
# define PLATFORM_KEY_POWER KEY_POWER
# define PLATFORM_KEY_SLEEP KEY_H // PowerCover
# define PLATFORM_KEY_WAKEUP KEY_F1 // Also PowerCover, depending on the device...
# define PLATFORM_KEY_PGPREV KEY_F23
# define PLATFORM_KEY_PGNEXT KEY_F24
# define PLATFORM_KEY_HOME KEY_HOME
# define PLATFORM_KEY_FRONTLIGHT KEY_KATAKANA
# define PLATFORM_KEY_MENU 0
# define PLATFORM_KEY_DPAD 0
# define PLATFORM_ROTATION_EV_TYPE EV_MSC
# define PLATFORM_ROTATION_EV_CODE MSC_RAW
# define PLATFORM_KEY_POWER KEY_POWER
# define PLATFORM_KEY_SLEEP KEY_H // PowerCover
# define PLATFORM_KEY_WAKEUP KEY_F1 // Also PowerCover, depending on the device...
# define PLATFORM_KEY_PGPREV KEY_F23
# define PLATFORM_KEY_PGNEXT KEY_F24
# define PLATFORM_KEY_HOME KEY_HOME
# define PLATFORM_KEY_FRONTLIGHT KEY_KATAKANA
# define PLATFORM_KEY_MENU 0
# define PLATFORM_KEY_DPAD 0
# define PLATFORM_ROTATION_EV_TYPE EV_MSC
# define PLATFORM_ROTATION_EV_CODE MSC_RAW
// For reference, custom NTX input-event-codes we might care about:
// Pen stuff
/*
# define ABS_AZIMUTH 0x1d
# define ABS_TIP_MAX 0x29
# define ABS_TIP_MIN 0x2a
# define ABS_TIP_HIST_MIN 0x2b
# define ABS_TIP_HIST_MAX 0x2c
*/
// ROTATION_EVENT values
/*
# define MSC_RAW_GSENSOR_PORTRAIT_DOWN 0x17
# define MSC_RAW_GSENSOR_PORTRAIT_UP 0x18
# define MSC_RAW_GSENSOR_LANDSCAPE_RIGHT 0x19
# define MSC_RAW_GSENSOR_LANDSCAPE_LEFT 0x1a
# define MSC_RAW_GSENSOR_BACK 0x1b
# define MSC_RAW_GSENSOR_FRONT 0x1c
*/
# elif defined(FBINK_FOR_KINDLE)
# define PLATFORM_KEY_POWER KEY_POWER // Generally handled by powerd
# define PLATFORM_KEY_SLEEP 0 // :?
Expand Down

0 comments on commit 365b119

Please sign in to comment.