If you think the Android project Android-Apps listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Java Source Code
/*
* Copyright (C) 2011 Tom Quist/*www.java2s.com*/
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You can get the GNU General Public License at
* http://www.gnu.org/licenses/gpl.html
*/package com.kniezrec.voiceremotefree;
importstatic de.quist.samy.remocon.Key.KEY_0;
importstatic de.quist.samy.remocon.Key.KEY_1;
importstatic de.quist.samy.remocon.Key.KEY_2;
importstatic de.quist.samy.remocon.Key.KEY_3;
importstatic de.quist.samy.remocon.Key.KEY_4;
importstatic de.quist.samy.remocon.Key.KEY_5;
importstatic de.quist.samy.remocon.Key.KEY_6;
importstatic de.quist.samy.remocon.Key.KEY_7;
importstatic de.quist.samy.remocon.Key.KEY_8;
importstatic de.quist.samy.remocon.Key.KEY_9;
importstatic de.quist.samy.remocon.Key.KEY_CHDOWN;
importstatic de.quist.samy.remocon.Key.KEY_CHUP;
importstatic de.quist.samy.remocon.Key.KEY_CH_LIST;
importstatic de.quist.samy.remocon.Key.KEY_DOWN;
importstatic de.quist.samy.remocon.Key.KEY_ENTER;
importstatic de.quist.samy.remocon.Key.KEY_EXIT;
importstatic de.quist.samy.remocon.Key.KEY_INFO;
importstatic de.quist.samy.remocon.Key.KEY_INTERNET;
importstatic de.quist.samy.remocon.Key.KEY_LEFT;
importstatic de.quist.samy.remocon.Key.KEY_MENU;
importstatic de.quist.samy.remocon.Key.KEY_MUTE;
importstatic de.quist.samy.remocon.Key.KEY_PAUSE;
importstatic de.quist.samy.remocon.Key.KEY_PLAY;
importstatic de.quist.samy.remocon.Key.KEY_POWEROFF;
importstatic de.quist.samy.remocon.Key.KEY_RIGHT;
importstatic de.quist.samy.remocon.Key.KEY_STOP;
importstatic de.quist.samy.remocon.Key.KEY_TTX_MIX;
importstatic de.quist.samy.remocon.Key.KEY_UP;
importstatic de.quist.samy.remocon.Key.KEY_VOLDOWN;
importstatic de.quist.samy.remocon.Key.KEY_VOLUP;
import android.util.SparseArray;
import de.quist.samy.remocon.Key;
publicabstractclass CSeriesButtons {
publicstaticfinal SparseArray<Key> MAPPINGS = new SparseArray<Key>();
static {
MAPPINGS.put(Commands.BTN_POWER_OFF, KEY_POWEROFF);
MAPPINGS.put(Commands.BTN_1, KEY_1);
MAPPINGS.put(Commands.BTN_2, KEY_2);
MAPPINGS.put(Commands.BTN_3, KEY_3);
MAPPINGS.put(Commands.BTN_4, KEY_4);
MAPPINGS.put(Commands.BTN_5, KEY_5);
MAPPINGS.put(Commands.BTN_6, KEY_6);
MAPPINGS.put(Commands.BTN_7, KEY_7);
MAPPINGS.put(Commands.BTN_8, KEY_8);
MAPPINGS.put(Commands.BTN_9, KEY_9);
MAPPINGS.put(Commands.BTN_0, KEY_0);
MAPPINGS.put(Commands.BTN_VOLUME_UP, KEY_VOLUP);
MAPPINGS.put(Commands.BTN_VOLUME_DOWN, KEY_VOLDOWN);
MAPPINGS.put(Commands.BTN_CHANNEL_UP, KEY_CHUP);
MAPPINGS.put(Commands.BTN_CHANNEL_DOWN, KEY_CHDOWN);
MAPPINGS.put(Commands.BTN_MUTE, KEY_MUTE);
MAPPINGS.put(Commands.BTN_INFO, KEY_INFO);
MAPPINGS.put(Commands.BTN_ENTER, KEY_ENTER);
MAPPINGS.put(Commands.BTN_UP, KEY_UP);
MAPPINGS.put(Commands.BTN_MENU, KEY_MENU);
MAPPINGS.put(Commands.BTN_DOWN, KEY_DOWN);
MAPPINGS.put(Commands.BTN_LEFT, KEY_LEFT);
MAPPINGS.put(Commands.BTN_RIGHT, KEY_RIGHT);
MAPPINGS.put(Commands.BTN_EXIT, KEY_EXIT);
MAPPINGS.put(Commands.BTN_TELETEXT, KEY_TTX_MIX);
MAPPINGS.put(Commands.BTN_CHANNEL_LIST, KEY_CH_LIST);
MAPPINGS.put(Commands.BTN_PAUSE, KEY_PAUSE);
MAPPINGS.put(Commands.BTN_PLAY, KEY_PLAY);
MAPPINGS.put(Commands.BTN_STOP, KEY_STOP);
MAPPINGS.put(Commands.BTN_INTERNET, KEY_INTERNET);
MAPPINGS.put(Commands.BTN_TOOLS, Key.KEY_TOOLS);
MAPPINGS.put(Commands.BTN_SOURCE, Key.KEY_SOURCE);
MAPPINGS.put(Commands.BTN_S_HDMI1, Key.KEY_HDMI);
MAPPINGS.put(Commands.BTN_RETURN, Key.KEY_RETURN);
}
}