Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
InputStatus.h
00001 #pragma once 00002 /** Class: InputStatus 00003 * 00004 * Used for store input status from Joypad/Joystick 00005 * 00006 */ 00007 class InputStatus 00008 { 00009 public: 00010 volatile char Ch0; // axis_y 00011 volatile char Ch1; // axis_x 00012 volatile char Ch2; // throttle 00013 volatile char Ch3; // option 00014 00015 volatile int Buttons; 00016 // 32 bits 00017 // *MSB* 00018 // | X | Y | Z | 00019 // ------------------------------------------------------------------------ 00020 // ThrotUp |ThrotDw | Up | Dw || Lf | Rg | A | B | 00021 // ------------------------------------------------------------------------ 00022 // A+A' | B+B' | C | D || E1 | E2 |START(F)|SELECT(G) 00023 // | | | || | | |Mode 00024 // *LSB* 00025 // 00026 00027 volatile char InputDeviceType;// 0:CS-Analog mode 00028 // 1:CS-Digital mode 00029 // 2:MD6B 00030 00031 volatile char Temp[8]; 00032 00033 public: 00034 void Reset(void) 00035 { 00036 Ch0 = 0x7f; 00037 Ch1 = 0x7f; 00038 Ch2 = 0x7f; 00039 Ch3 = 0x7f; 00040 Buttons = 0x7fffffff; 00041 InputDeviceType = 1; 00042 } 00043 }; 00044
Generated on Thu Jul 14 2022 14:49:55 by
1.7.2