mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
Switchover remote control standard / neo1
- Redundant code removed, THX dbt for the tip. - Bug in "remote control neo1" left / right keys fixed. git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1781 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -3417,27 +3417,25 @@ printf("CNeutrinoApp::setVolume dx %d dy %d\n", dx, dy);
|
||||
uint64_t timeoutEnd;
|
||||
|
||||
do {
|
||||
if (msg <= CRCInput::RC_MaxRC) {
|
||||
if ((msg == CRCInput::RC_plus) ||
|
||||
((g_settings.remote_control_hardware == CKeybindSetup::REMOTECONTROL_NEO1) &&
|
||||
(g_RemoteControl->subChannels.size() < 1) &&
|
||||
(msg == CRCInput::RC_right))) {
|
||||
if (msg <= CRCInput::RC_MaxRC)
|
||||
{
|
||||
int sub_chan_keybind = 0;
|
||||
if (g_settings.remote_control_hardware == CKeybindSetup::REMOTECONTROL_NEO1 && g_RemoteControl->subChannels.size() < 1)
|
||||
sub_chan_keybind = 1;
|
||||
|
||||
if ((msg == CRCInput::RC_plus) || (sub_chan_keybind == 1 && (msg == CRCInput::RC_right))) {
|
||||
if (g_settings.current_volume < 100 - g_settings.current_volume_step)
|
||||
g_settings.current_volume += g_settings.current_volume_step;
|
||||
else
|
||||
g_settings.current_volume = 100;
|
||||
if(current_muted){
|
||||
|
||||
if(current_muted)
|
||||
AudioMute( false, true);
|
||||
}
|
||||
}
|
||||
else if ((msg == CRCInput::RC_minus) ||
|
||||
((g_settings.remote_control_hardware == CKeybindSetup::REMOTECONTROL_NEO1) &&
|
||||
(g_RemoteControl->subChannels.size() < 1) &&
|
||||
(msg == CRCInput::RC_left))) {
|
||||
else if ((msg == CRCInput::RC_minus) || (sub_chan_keybind == 1 && (msg == CRCInput::RC_left))) {
|
||||
if (g_settings.current_volume > g_settings.current_volume_step)
|
||||
g_settings.current_volume -= g_settings.current_volume_step;
|
||||
else if ((g_settings.show_mute_icon == 1) && (g_settings.current_volume = 1))
|
||||
{
|
||||
else if ((g_settings.show_mute_icon == 1) && (g_settings.current_volume = 1)) {
|
||||
(g_settings.current_volume = 1);
|
||||
AudioMute( true, true);
|
||||
g_settings.current_volume = 0;
|
||||
|
Reference in New Issue
Block a user