[tuxdroid-svn] r155 - api/python/trunk
Status: Beta
Brought to you by:
ks156
From: remi <c2m...@c2...> - 2007-03-14 12:24:38
|
Author: remi Date: 2007-03-14 13:24:21 +0100 (Wed, 14 Mar 2007) New Revision: 155 Modified: api/python/trunk/tuxapi_const.py Log: UPD : - New defines for the remote control are added Modified: api/python/trunk/tuxapi_const.py =================================================================== --- api/python/trunk/tuxapi_const.py 2007-03-14 12:23:03 UTC (rev 154) +++ api/python/trunk/tuxapi_const.py 2007-03-14 12:24:21 UTC (rev 155) @@ -1,3 +1,25 @@ +# ----------------------------------------------------------------------------- +# Tux Droid - API constants +# Copyright (C) 2007 C2ME Sa <rem...@c2...> +# +# 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, 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 should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +# 02111-1307, USA. +# ----------------------------------------------------------------------------- +# $Id$ +# ----------------------------------------------------------------------------- + #============================================================================== # BEHAVIOR USB DAEMON constants #============================================================================== @@ -88,6 +110,15 @@ K_MOUSE = 0X3B K_ALT = 0X3C +remote_bt_name=["K_0","K_1","K_2","K_3","K_4","K_5","K_6","K_7","K_8","K_9",\ +"None","None","K_STANDBY","K_MUTE","None","None","K_VOLUMEPLUS","K_VOLUMEMINUS",\ +"K_ESCAPE","K_YES","K_NO","K_BACKSPACE","K_STARTVOIP","K_RECEIVECALL","K_HANGUP",\ +"K_STAR","K_SHARP","K_RED","K_GREEN","K_BLUE","K_YELLOW","None","K_CHANNELPLUS",\ +"K_CHANNELMINUS","K_UP","K_DOWN","K_LEFT","K_RIGHT","K_OK","None","None","None","None",\ +"None","None","None","None","None","None","None","K_FASTREWIND","None",\ +"K_FASTFORWARD","K_PLAYPAUSE","K_STOP","K_RECORDING","K_PREVIOUS","K_NEXT",\ +"K_MENU","K_MOUSE","K_ALT","None","None","None"] + # Status datas DATAS_STATUS_WINGS_MOTOR_BACKWARD = 0x01 DATAS_STATUS_SPIN_MOTOR_BACKWARD = 0x02 @@ -124,6 +155,7 @@ DATAS_STATUS_RF_CONNECTED = 0x21 DATAS_STATUS_IR_CODE = 0x22 DATAS_STATUS_SOUND_COUNT = 0x23 +DATAS_STATUS_PONG = 0x24 # Datas TuxDroid DATAS_STATUS_DONGLE = 0x00 @@ -155,7 +187,8 @@ DATA_TP_CMD = 0x01 DATA_TP_REQ = 0x02 DATA_TP_RSP = 0x03 -DATA_TP_ACK = 0x04 +DATA_TP_ACK_CMD = 0x04 +DATA_TP_ACK_DP = 0x05 # Sub data types SUBDATA_TP_RAW = 0x01 SUBDATA_TP_STRUCT = 0x02 |