repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LibCecSharp: don't use an int but a CecUserControlCode in a CecKeypress
[deb_libcec.git]
/
src
/
LibCecSharp
/
CecSharpTypes.h
diff --git
a/src/LibCecSharp/CecSharpTypes.h
b/src/LibCecSharp/CecSharpTypes.h
index 43aaff935ca0b75e8bfe0b8cc78523820cdf3831..f17ee610162d3778f2c937a79cd3beb7305d3ecb 100644
(file)
--- a/
src/LibCecSharp/CecSharpTypes.h
+++ b/
src/LibCecSharp/CecSharpTypes.h
@@
-247,6
+247,7
@@
namespace CecSharp
F5 = 0x75,
Data = 0x76,
Max = 0x76,
F5 = 0x75,
Data = 0x76,
Max = 0x76,
+ SamsungReturn = 0x91,
Unknown
};
Unknown
};
@@
-510,7
+511,7
@@
namespace CecSharp
public ref class CecKeypress
{
public:
public ref class CecKeypress
{
public:
- CecKeypress(
int
iKeycode, unsigned int iDuration)
+ CecKeypress(
CecUserControlCode
iKeycode, unsigned int iDuration)
{
Keycode = iKeycode;
Duration = iDuration;
{
Keycode = iKeycode;
Duration = iDuration;
@@
-519,14
+520,14
@@
namespace CecSharp
CecKeypress(void)
{
CecKeypress(void)
{
- Keycode =
0
;
+ Keycode =
CecUserControlCode::Unknown
;
Duration = 0;
Empty = true;
}
Duration = 0;
Empty = true;
}
- property bool Empty;
- property
int
Keycode;
- property unsigned int Duration;
+ property bool
Empty;
+ property
CecUserControlCode
Keycode;
+ property unsigned int
Duration;
};
public ref class CecLogMessage
};
public ref class CecLogMessage
@@
-837,7
+838,7
@@
namespace CecSharp
{
int iReturn(0);
if (m_bHasCallbacks)
{
int iReturn(0);
if (m_bHasCallbacks)
- iReturn = m_callbacks->ReceiveKeypress(gcnew CecKeypress(key.keycode, key.duration));
+ iReturn = m_callbacks->ReceiveKeypress(gcnew CecKeypress(
(CecUserControlCode)
key.keycode, key.duration));
return iReturn;
}
return iReturn;
}