repeat83

Untitled

Feb 3rd, 2018
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.85 KB | None | 0 0
  1. { "Accurate timing (slower)", MB_ONOFF, MA_OPT_ACC_TIMING, &currentConfig.PicoOpt, 0x040, 0, 0, 1 },
  2.  
  3. Start
  4. B
  5.  
  6. -----
  7. A = []
  8. C = []
  9. MODE
  10. X
  11. Y
  12. Z
  13.  
  14.  
  15. enum { GP2X_UP=1<<6, GP2X_LEFT=1<<5, GP2X_DOWN=1<<27, GP2X_RIGHT=1<<18,
  16. GP2X_START=1<<16, GP2X_SELECT=1<<17, GP2X_L=1<<14, GP2X_R=1<<15,
  17. GP2X_A=1<<2, GP2X_B=1<<0, GP2X_X=1<<1, GP2X_Y=1<<19,
  18. GP2X_VOL_UP=1<<20, GP2X_VOL_DOWN=1<<21, GP2X_PUSH=1<<29 };
  19.  
  20.  
  21.  
  22. // PicoPad[] format: MXYZ SACB RLDU
  23.  
  24.  
  25. static bind_action_t ctrl_actions[] =
  26. {
  27. { "UP ", 0x001 }, //0x001 UP 0
  28. { "DOWN ", 0x002 }, //0x002 DOWN 1
  29. { "LEFT ", 0x004 }, //0x004 LEFT 2
  30. { "RIGHT ", 0x008 }, //0x008 RIGHT 3
  31. { "A ", 0x020 }, //0x040 Y - 5
  32. { "B ", 0x010 }, //0x010 B - 4
  33. { "C ", 0x800 }, //0x020 A - 11
  34. { "START ", 0x080 }, //0x080 START - 7
  35. { "MODE ", 0x400 }, //0x800 POWER - 10
  36. { "X ", 0x100 }, //0x400 R - 8
  37. { "Y ", 0x040 }, //0x200 L 6
  38. { "Z ", 0x800 }, //0x100 X 11
  39. };
  40.  
  41. static const char *gp2xKeyNames[] = {
  42. "A", "B", "Y", "Z", "C", "LEFT", "UP", "???", //0
  43. "???", "???", "???", "???", "???", "???", "L", "R", //8
  44. "START", "SELECT", "RIGHT", "X", "???", "???", "POWER","POWER", //16
  45. "???", "???", "???", "DOWN", "???", "POWER", "???", "???" //24
  46. };
  47.  
  48. static bind_action_t ctrl_actions[] =
  49. {
  50. { "UP ", 0x001 }, 0
  51. { "DOWN ", 0x002 }, 1
  52. { "LEFT ", 0x004 }, 2
  53. { "RIGHT ", 0x008 }, 3
  54. { "A ", 0x040 }, 6
  55. { "B ", 0x010 }, 4
  56. { "C ", 0x020 }, 5
  57. { "START ", 0x080 }, 7
  58. { "MODE ", 0x800 }, 11
  59. { "X ", 0x400 }, 10
  60. { "Y ", 0x200 }, 9
  61. { "Z ", 0x100 }, 8
  62. };
  63.  
  64. gp2xKeyName = ctrl_action
  65. REAL_KEY = Action
  66.  
  67.  
  68. // gp2xKeyName = ctrl_action
  69. // REAL_KEY = Action
  70. // in pico it was "C (Action) = A (REAL_KEY)"
  71. currentConfig.KeyBinds[ 6] = 1<<0; // SACB RLDU
  72. currentConfig.KeyBinds[27] = 1<<1;
  73. currentConfig.KeyBinds[ 5] = 1<<2;
  74. currentConfig.KeyBinds[18] = 1<<3;
  75. currentConfig.KeyBinds[ 1] = 1<<4; // B = B
  76. // currentConfig.KeyBinds[ 0] = 1<<5; //wrong A = C, in pico it was "C (action) = A (real)"
  77. currentConfig.KeyBinds[ 4] = 1<<5; // C = C
  78. // currentConfig.KeyBinds[ 2] = 1<<6; //wrong Y = A, in pico it was "A (action) = Y (real)"
  79. currentConfig.KeyBinds[ 0] = 1<<6; // A = A
  80. currentConfig.KeyBinds[16] = 1<<7; // START = START
  81. //new
  82. currentConfig.KeyBinds[15] = 1<<11; // R = MODE
  83. currentConfig.KeyBinds[19] = 1<<10; // X = X
  84. currentConfig.KeyBinds[2] = 1<<9; // = Y
  85. currentConfig.KeyBinds[3] = 1<<8; // = Z
  86. // ---
  87. /* currentConfig.KeyBinds[19] = 1<<26; // switch rend
  88. currentConfig.KeyBinds[14] = 1<<27; // save state
  89. currentConfig.KeyBinds[15] = 1<<28; // load state
  90. currentConfig.KeyBinds[23] = 1<<29; // vol up
  91. currentConfig.KeyBinds[22] = 1<<30; // vol down
  92. */
Add Comment
Please, Sign In to add comment