Satellite Observers Workbench. NOT yet complete, just published for forum posters to \"cherry pick\" pieces of code as requiered as an example.

Dependencies:   mbed

Committer:
AjK
Date:
Mon Oct 11 10:34:55 2010 +0000
Revision:
0:0a841b89d614
Totally Alpha quality as this project isn\t completed. Just publishing it as it answers many questions asked in the forums

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AjK 0:0a841b89d614 1 /****************************************************************************
AjK 0:0a841b89d614 2 * Copyright 2010 Andy Kirkham, Stellar Technologies Ltd
AjK 0:0a841b89d614 3 *
AjK 0:0a841b89d614 4 * This file is part of the Satellite Observers Workbench (SOWB).
AjK 0:0a841b89d614 5 *
AjK 0:0a841b89d614 6 * SOWB is free software: you can redistribute it and/or modify
AjK 0:0a841b89d614 7 * it under the terms of the GNU General Public License as published by
AjK 0:0a841b89d614 8 * the Free Software Foundation, either version 3 of the License, or
AjK 0:0a841b89d614 9 * (at your option) any later version.
AjK 0:0a841b89d614 10 *
AjK 0:0a841b89d614 11 * SOWB is distributed in the hope that it will be useful,
AjK 0:0a841b89d614 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
AjK 0:0a841b89d614 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
AjK 0:0a841b89d614 14 * GNU General Public License for more details.
AjK 0:0a841b89d614 15 *
AjK 0:0a841b89d614 16 * You should have received a copy of the GNU General Public License
AjK 0:0a841b89d614 17 * along with SOWB. If not, see <http://www.gnu.org/licenses/>.
AjK 0:0a841b89d614 18 *
AjK 0:0a841b89d614 19 * $Id: main.cpp 5 2010-07-12 20:51:11Z ajk $
AjK 0:0a841b89d614 20 *
AjK 0:0a841b89d614 21 ***************************************************************************/
AjK 0:0a841b89d614 22
AjK 0:0a841b89d614 23 #ifndef TH_XBOX360GAMEPAD_H
AjK 0:0a841b89d614 24 #define TH_XBOX360GAMEPAD_H
AjK 0:0a841b89d614 25
AjK 0:0a841b89d614 26 #ifndef BUTT_LS_PRESS
AjK 0:0a841b89d614 27 #define BUTT_LS_PRESS 1
AjK 0:0a841b89d614 28 #define BUTT_RS_PRESS 2
AjK 0:0a841b89d614 29 #define BUTT_XBOX_PRESS 3
AjK 0:0a841b89d614 30 #define BUTT_UNUSED_PRESS 4
AjK 0:0a841b89d614 31 #define BUTT_A_PRESS 5
AjK 0:0a841b89d614 32 #define BUTT_B_PRESS 6
AjK 0:0a841b89d614 33 #define BUTT_X_PRESS 7
AjK 0:0a841b89d614 34 #define BUTT_Y_PRESS 8
AjK 0:0a841b89d614 35 #define BUTT_DPAD_UP_PRESS 9
AjK 0:0a841b89d614 36 #define BUTT_DPAD_DOWN_PRESS 10
AjK 0:0a841b89d614 37 #define BUTT_DPAD_LEFT_PRESS 11
AjK 0:0a841b89d614 38 #define BUTT_DPAD_RIGHT_PRESS 12
AjK 0:0a841b89d614 39 #define BUTT_START_PRESS 13
AjK 0:0a841b89d614 40 #define BUTT_BACK_PRESS 14
AjK 0:0a841b89d614 41 #define BUTT_LEFT_HAT_PRESS 15
AjK 0:0a841b89d614 42 #define BUTT_RIGHT_HAT_PRESS 16
AjK 0:0a841b89d614 43 #endif
AjK 0:0a841b89d614 44
AjK 0:0a841b89d614 45 #define STICK_DIVISOR 1024
AjK 0:0a841b89d614 46
AjK 0:0a841b89d614 47
AjK 0:0a841b89d614 48 void th_xbox360gamepad_init(void);
AjK 0:0a841b89d614 49 void th_xbox360gamepad(void);
AjK 0:0a841b89d614 50
AjK 0:0a841b89d614 51 #endif
AjK 0:0a841b89d614 52