2 * Copyright (c) 2010-2024 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
7 * This program and the accompanying materials are made available under the
8 * terms of the Eclipse Public License 2.0 which is available at
9 * http://www.eclipse.org/legal/epl-2.0
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.samsungtv.internal.protocol;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
18 * The {@link KeyCode} presents all available key codes of Samsung TV.
21 * href="http://wiki.samygo.tv/index.php5/D-Series_Key_Codes">http://wiki.samygo.tv/index.php5/D-Series_Key_Codes
25 * @author Pauli Anttila - Initial contribution
26 * @author Nick Waterton - added KEY_AMBIENT, KEY_BT_VOICE
56 KEY_AUTO_ARC_ANTENNA_AIR,
57 KEY_AUTO_ARC_ANTENNA_CABLE,
58 KEY_AUTO_ARC_ANTENNA_SATELLITE,
59 KEY_AUTO_ARC_ANYNET_AUTO_START,
60 KEY_AUTO_ARC_ANYNET_MODE_OK,
61 KEY_AUTO_ARC_AUTOCOLOR_FAIL,
62 KEY_AUTO_ARC_AUTOCOLOR_SUCCESS,
63 KEY_AUTO_ARC_CAPTION_ENG,
64 KEY_AUTO_ARC_CAPTION_KOR,
65 KEY_AUTO_ARC_CAPTION_OFF,
66 KEY_AUTO_ARC_CAPTION_ON,
67 KEY_AUTO_ARC_C_FORCE_AGING,
68 KEY_AUTO_ARC_JACK_IDENT,
71 KEY_AUTO_ARC_PIP_CH_CHANGE,
72 KEY_AUTO_ARC_PIP_DOUBLE,
73 KEY_AUTO_ARC_PIP_LARGE,
74 KEY_AUTO_ARC_PIP_LEFT_BOTTOM,
75 KEY_AUTO_ARC_PIP_LEFT_TOP,
76 KEY_AUTO_ARC_PIP_RIGHT_BOTTOM,
77 KEY_AUTO_ARC_PIP_RIGHT_TOP,
78 KEY_AUTO_ARC_PIP_SMALL,
79 KEY_AUTO_ARC_PIP_SOURCE_CHANGE,
80 KEY_AUTO_ARC_PIP_WIDE,
82 KEY_AUTO_ARC_USBJACK_INSPECT,
103 KEY_CONVERT_AUDIO_MAINSUB,
240 KEY_INTERNET(KEY_RSS),
244 KEY_SETUP_CLOCK_TIMER,
279 private final String value;
285 KeyCode(String value) {
289 KeyCode(KeyCode otherKey) {
290 this(otherKey.getValue());
293 public String getValue() {
294 if ("".equals(value)) {