最終更新:2014-06-11 (水) 01:21:50 (2421d)  

Sペン
Top / Sペン

getevent

  • shell@android:/ $ getevent -lp /dev/input/event12
    add device 1: /dev/input/event12
      name:     "sec_e-pen"
      events:
        KEY (0001): KEY_UNKNOWN           BTN_TOOL_PEN          BTN_TOOL_RUBBER
      BTN_TOUCH
                    BTN_STYLUS
        ABS (0003): ABS_X                 : value 0, min 0, max 7120, fuzz 4, flat 0, resolution 0
                    ABS_Y                 : value 0, min 0, max 11392, fuzz 4, flat0, resolution 0
                    ABS_PRESSURE          : value 0, min 0, max 255, fuzz 0, flat 0,
     resolution 0
      input props:
        <none>
  • ログ
    EV_KEY       BTN_TOOL_PEN         DOWN <=ペン検出
    EV_SYN       SYN_REPORT           00000000
    EV_ABS       ABS_X                00000dcf
    EV_ABS       ABS_Y                00001cd8
    EV_SYN       SYN_REPORT           00000000
    EV_ABS       ABS_X                00000dbe
    EV_ABS       ABS_Y                00001ce6
    EV_SYN       SYN_REPORT           00000000
    EV_ABS       ABS_X                00000dbb
    EV_ABS       ABS_PRESSURE         000000f7
    EV_KEY       BTN_TOUCH            DOWN    <=ペンでタッチ
    EV_SYN       SYN_REPORT           00000000
    EV_ABS       ABS_X                00000db9
    EV_ABS       ABS_Y                00001ce8
    EV_ABS       ABS_PRESSURE         000000ff
    EV_SYN       SYN_REPORT           00000000
    EV_ABS       ABS_X                00000db7
    EV_ABS       ABS_Y                00001ceb
    EV_SYN       SYN_REPORT           00000000
    EV_ABS       ABS_X                00000f07
    EV_ABS       ABS_Y                00001d09
    EV_ABS       ABS_PRESSURE         00000012
    EV_SYN       SYN_REPORT           00000000
    EV_ABS       ABS_X                00000efb
    EV_ABS       ABS_Y                00001d16
    EV_ABS       ABS_PRESSURE         00000001
    EV_SYN       SYN_REPORT           00000000
    EV_ABS       ABS_Y                00001d15
    EV_ABS       ABS_PRESSURE         00000000
    EV_KEY       BTN_TOUCH            UP       <=タッチ終了
    EV_SYN       SYN_REPORT           00000000
    EV_ABS       ABS_X                00000ef8
    EV_SYN       SYN_REPORT           00000000
    EV_ABS       ABS_X                00000ef0
    EV_ABS       ABS_Y                00001cc0
    EV_SYN       SYN_REPORT           00000000
    EV_KEY       BTN_TOOL_PEN         UP       <=ペンをロスト
    EV_SYN       SYN_REPORT           00000000
  • 横のボタンはBTN_STYLUS?

イベント

関連