mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Fixed indentation
This commit is contained in:
parent
d2f4fbb0b2
commit
9cd835b35e
66
remote.c
66
remote.c
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* how to reach the author.
|
||||||
*
|
*
|
||||||
* $Id: remote.c 2.4 2011/08/15 13:41:40 kls Exp $
|
* $Id: remote.c 2.5 2012/01/16 16:57:00 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "remote.h"
|
#include "remote.h"
|
||||||
@ -317,38 +317,38 @@ uint64_t cKbdRemote::ReadKeySequence(void)
|
|||||||
if ((key1 = ReadKey()) >= 0) {
|
if ((key1 = ReadKey()) >= 0) {
|
||||||
k = key1;
|
k = key1;
|
||||||
if (key1 == 0x1B) {
|
if (key1 == 0x1B) {
|
||||||
// Start of escape sequence
|
// Start of escape sequence
|
||||||
if ((key1 = ReadKey()) >= 0) {
|
if ((key1 = ReadKey()) >= 0) {
|
||||||
k <<= 8;
|
k <<= 8;
|
||||||
k |= key1 & 0xFF;
|
k |= key1 & 0xFF;
|
||||||
switch (key1) {
|
switch (key1) {
|
||||||
case 0x4F: // 3-byte sequence
|
case 0x4F: // 3-byte sequence
|
||||||
if ((key1 = ReadKey()) >= 0) {
|
if ((key1 = ReadKey()) >= 0) {
|
||||||
k <<= 8;
|
k <<= 8;
|
||||||
k |= key1 & 0xFF;
|
k |= key1 & 0xFF;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 0x5B: // 3- or more-byte sequence
|
case 0x5B: // 3- or more-byte sequence
|
||||||
if ((key1 = ReadKey()) >= 0) {
|
if ((key1 = ReadKey()) >= 0) {
|
||||||
k <<= 8;
|
k <<= 8;
|
||||||
k |= key1 & 0xFF;
|
k |= key1 & 0xFF;
|
||||||
switch (key1) {
|
switch (key1) {
|
||||||
case 0x31 ... 0x3F: // more-byte sequence
|
case 0x31 ... 0x3F: // more-byte sequence
|
||||||
case 0x5B: // strange, may apparently occur
|
case 0x5B: // strange, may apparently occur
|
||||||
do {
|
do {
|
||||||
if ((key1 = ReadKey()) < 0)
|
if ((key1 = ReadKey()) < 0)
|
||||||
break; // Sequence ends here
|
break; // Sequence ends here
|
||||||
k <<= 8;
|
k <<= 8;
|
||||||
k |= key1 & 0xFF;
|
k |= key1 & 0xFF;
|
||||||
} while (key1 != 0x7E);
|
} while (key1 != 0x7E);
|
||||||
break;
|
break;
|
||||||
default: ;
|
default: ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default: ;
|
default: ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return k;
|
return k;
|
||||||
|
Loading…
Reference in New Issue
Block a user