Code example for KeyEvent

Methods: getMetaState

0
    private void mediaNext() { 
        notifyKey(ASUSDEC_MEDIA, ASUSDEC_MEDIA_NEXT);
    } 
 
    private void capsLock(KeyEvent event) {
        int status = event.getMetaState() == KeyEvent.META_CAPS_LOCK_ON ?
                ASUSDEC_STATUS_ON :
                ASUSDEC_STATUS_OFF;
        notifyKey(ASUSDEC_CAPS_LOCK, status);
    } 
 
    /* 
     * Screenshot stuff kanged from PhoneWindowManager 
     */ 
 
    final Object mScreenshotLock = new Object();
    ServiceConnection mScreenshotConnection = null;
 
    final Runnable mScreenshotTimeout = new Runnable() {
        @Override 
        public void run() {