[libbluray-devel] added colored user input keys
hpi1
git at videolan.org
Tue Apr 1 15:01:41 CEST 2014
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Tue Apr 1 15:53:22 2014 +0300| [320dfe0021a77cd417cff61405cac9969bf7a834] | committer: hpi1
added colored user input keys
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=320dfe0021a77cd417cff61405cac9969bf7a834
---
ChangeLog | 1 +
src/libbluray/bdj/java/org/videolan/Libbluray.java | 4 ++++
src/libbluray/keys.h | 5 +++++
3 files changed, 10 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index de06ca2..9e4e437 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
- Added HDMV/BDJ title information to BLURAY_DISC_INFO.
- Added disc application info to BLURAY_DISC_INFO.
+- Added color keys (RED, GREEN, YELLOW, BLUE).
2013-12-21: Version 0.5.0
- Portability fixes.
diff --git a/src/libbluray/bdj/java/org/videolan/Libbluray.java b/src/libbluray/bdj/java/org/videolan/Libbluray.java
index 77936bc..d7aaec6 100644
--- a/src/libbluray/bdj/java/org/videolan/Libbluray.java
+++ b/src/libbluray/bdj/java/org/videolan/Libbluray.java
@@ -383,6 +383,10 @@ public class Libbluray {
case 14: key = KeyEvent.VK_LEFT; break;
case 15: key = KeyEvent.VK_RIGHT; break;
case 16: key = KeyEvent.VK_ENTER; break;
+ case 403: key = HRcEvent.VK_COLORED_KEY_0; break;
+ case 404: key = HRcEvent.VK_COLORED_KEY_1; break;
+ case 405: key = HRcEvent.VK_COLORED_KEY_2; break;
+ case 406: key = HRcEvent.VK_COLORED_KEY_3; break;
default:
key = -1;
result = false;
diff --git a/src/libbluray/keys.h b/src/libbluray/keys.h
index 733e848..ba40079 100644
--- a/src/libbluray/keys.h
+++ b/src/libbluray/keys.h
@@ -54,6 +54,11 @@ typedef enum {
/* Translated to BD_VK_ENTER if mouse is over valid button */
BD_VK_MOUSE_ACTIVATE = 17,
+ BD_VK_RED = 403,
+ BD_VK_GREEN = 404,
+ BD_VL_YELLOW = 405,
+ BD_VK_BLUE = 406,
+
} bd_vk_key_e;
#endif // _BD_KEYS_H_
More information about the libbluray-devel
mailing list