prevent double taps by not sending the same key press twice within 200ms
[deb_libcec.git] / include / cectypes.h
index 6f0c372a64ae3ecca650389947cdd9c7950d6b97..c80354e580284b06fcee86b9e21e373ea6eecdfe 100644 (file)
@@ -79,6 +79,11 @@ namespace CEC {
  */
 #define CEC_BUTTON_TIMEOUT           500
 
+/*!
+ * don't send the same key twice within this timeout in milliseconds
+ */
+#define CEC_DOUBLE_TAP_TIMEOUT_MS    200
+
 /*!
  * don't query the power state for the same device within this timeout in milliseconds
  */
@@ -1356,6 +1361,7 @@ typedef enum cec_client_version
   CEC_CLIENT_VERSION_1_8_2   = 0x1802,
   CEC_CLIENT_VERSION_1_9_0   = 0x1900,
   CEC_CLIENT_VERSION_1_99_0  = 0x1990,
+  CEC_CLIENT_VERSION_2_0_0   = 0x2000,
 } cec_client_version;
 
 typedef enum cec_server_version
@@ -1377,6 +1383,7 @@ typedef enum cec_server_version
   CEC_SERVER_VERSION_1_8_2   = 0x1802,
   CEC_SERVER_VERSION_1_9_0   = 0x1900,
   CEC_SERVER_VERSION_1_99_0  = 0x1990,
+  CEC_SERVER_VERSION_2_0_0   = 0x2000,
 } cec_server_version;
 
 struct libcec_configuration