Changes

102 bytes removed ,  21:52, 9 April 2015
→‎Keys: Convert button bitflags into C defines
Line 106: Line 106:     
== Defines ==
 
== Defines ==
=== Keys ===
+
=== Buttons ===
{| class="wikitable"
+
<syntaxhighlight lang="C">
!Name
+
#define BUTTON_A        0x8000
!Value
+
#define BUTTON_B        0x4000
!Description
+
#define BUTTON_X        0x2000
|-
+
#define BUTTON_Y        0x1000
|KEY_DRC_LEFT
+
#define BUTTON_LEFT    0x0800
|0x0800
+
#define BUTTON_RIGHT    0x0400
|Left d-pad button
+
#define BUTTON_UP      0x0200
|-
+
#define BUTTON_DOWN    0x0100
|KEY_DRC_RIGHT
+
#define BUTTON_ZL      0x0080
|0x0400
+
#define BUTTON_ZR      0x0040
|Right  d-pad button
+
#define BUTTON_L        0x0020
|-
+
#define BUTTON_R        0x0010
|KEY_DRC_UP
+
#define BUTTON_PLUS    0x0008
|0x0200
+
#define BUTTON_MINUS    0x0004
|Upper  d-pad button
+
#define BUTTON_HOME    0x0002
|-
+
#define BUTTON_SYNC    0x0001
|KEY_DRC_DOWN
+
</syntaxhighlight>
|0x0100
  −
|Bottom d-pad button
  −
|-
  −
|KEY_DRC_A
  −
|0x8000
  −
|A button
  −
|-
  −
|KEY_DRC_B
  −
|0x4000
  −
|B button
  −
|-
  −
|KEY_DRC_X
  −
|0x2000
  −
|X button
  −
|-
  −
|KEY_DRC_Y
  −
|0x1000
  −
|Y button
  −
 
  −
|-
  −
|KEY_DRC_ZL
  −
|0x0080
  −
|ZL button
  −
|-
  −
|KEY_DRC_ZR
  −
|0x0040
  −
|ZR button
  −
|-
  −
|KEY_DRC_L
  −
|0x0020
  −
|L button
  −
|-
  −
|KEY_DRC_R
  −
|0x0010
  −
|R button
  −
 
  −
|-
  −
|KEY_DRC_PLUS
  −
|0x0008
  −
|Plus button
  −
|-
  −
|KEY_DRC_MINUS
  −
|0x0004
  −
|Minus button
  −
|-
  −
|KEY_DRC_SYNC
  −
|0x0001
  −
|Sync button
  −
|-
  −
|KEY_DRC_HOME
  −
|0x0002
  −
|Home button
  −
|}
 
203

edits