All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jfxvnc.net.rfb.codec.encoder.KeyButtonEvent Maven / Gradle / Ivy

The newest version!
/*******************************************************************************
 * Copyright (c) 2016 comtel inc.
 *
 * Licensed under the Apache License, version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at:
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 *******************************************************************************/
package org.jfxvnc.net.rfb.codec.encoder;

/**
 * BackSpace 0xff08
* Tab 0xff09
* Return or Enter 0xff0d
* Escape 0xff1b
* Insert 0xff63
* Delete 0xffff
* Home 0xff50
* End 0xff57
* Page Up 0xff55
* Page Down 0xff56
* Left 0xff51
* Up 0xff52
* Right 0xff53
* Down 0xff54
* F1 0xffbe
* F2 0xffbf
* F3 0xffc0
* F4 0xffc1
* ...
* ...
* F12 0xffc9
* Shift (left) 0xffe1
* Shift (right) 0xffe2
* Control (left) 0xffe3
* Control (right) 0xffe4
* Meta (left) 0xffe7
* Meta (right) 0xffe8
* Alt (left) 0xffe9
* Alt (right) 0xffea
* * @author comtel * */ public class KeyButtonEvent implements InputEvent { private final boolean isDown; private final int key; public KeyButtonEvent(boolean isDown, int key) { this.isDown = isDown; this.key = key; } public boolean isDown() { return isDown; } public int getKey() { return key; } @Override public String toString() { return "KeyEvent [isDown=" + isDown + ", key=" + key + "]"; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy