Fix YES/NO keys and set 0 as default key

This commit is contained in:
Zlika 2020-05-22 14:01:29 +02:00
parent fcfa48c5a1
commit 222024869d
2 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@
#include "vkeyb_layout.h"
#include "../../libretro.h"
const struct VKey *ODYSSEY2_DEFAULT_KEY = &o2_kb[21];
const struct VKey *ODYSSEY2_DEFAULT_KEY = &o2_kb[0];
const struct VKey o2_kb[ODYSSEY2_KB_KEYS] =
{
@ -24,8 +24,8 @@ const struct VKey o2_kb[ODYSSEY2_KB_KEYS] =
{ RETROK_ASTERISK, 73, 44, 31, 16, &o2_kb[11], &o2_kb[13], &o2_kb[2], &o2_kb[22] }, /* 12: * */
{ RETROK_SLASH, 105, 44, 31, 16, &o2_kb[12], &o2_kb[14], &o2_kb[3], &o2_kb[23] }, /* 13: % */
{ RETROK_EQUALS, 138, 44, 31, 16, &o2_kb[13], &o2_kb[15], &o2_kb[4], &o2_kb[24] }, /* 14: = */
{ RETROK_UNKNOWN, 170, 44, 31, 16, &o2_kb[14], &o2_kb[16], &o2_kb[5], &o2_kb[25] }, /* 15: YES */
{ RETROK_UNKNOWN, 202, 44, 31, 16, &o2_kb[15], &o2_kb[17], &o2_kb[6], &o2_kb[26] }, /* 16: NO */
{ RETROK_LALT, 170, 44, 31, 16, &o2_kb[14], &o2_kb[16], &o2_kb[5], &o2_kb[25] }, /* 15: YES */
{ RETROK_RALT, 202, 44, 31, 16, &o2_kb[15], &o2_kb[17], &o2_kb[6], &o2_kb[26] }, /* 16: NO */
{ RETROK_END, 234, 44, 31, 16, &o2_kb[16], &o2_kb[18], &o2_kb[7], &o2_kb[27] }, /* 17: CLEAR */
{ RETROK_RETURN, 266, 44, 31, 16, &o2_kb[17], &o2_kb[19], &o2_kb[8], &o2_kb[28] }, /* 18: ENTER */
{ RETROK_UNKNOWN, 299, 44, 31, 16, &o2_kb[18], &o2_kb[10], &o2_kb[9], &o2_kb[29] }, /* 19: RESET */

View File

@ -80,7 +80,7 @@ int key2[128];
static unsigned int key_map[6][8]= {
{RETROK_0,RETROK_1,RETROK_2,RETROK_3,RETROK_4,RETROK_5,RETROK_6,RETROK_7},
{RETROK_8,RETROK_9,0,0,RETROK_SPACE,RETROK_QUESTION,RETROK_l,RETROK_p},
{RETROK_8,RETROK_9,RETROK_LALT/*YES key*/,RETROK_RALT/*NO key*/,RETROK_SPACE,RETROK_QUESTION,RETROK_l,RETROK_p},
{RETROK_PLUS,RETROK_w,RETROK_e,RETROK_r,RETROK_t,RETROK_u,RETROK_i,RETROK_o},
{RETROK_q,RETROK_s,RETROK_d,RETROK_f,RETROK_g,RETROK_h,RETROK_j,RETROK_k},
{RETROK_a,RETROK_z,RETROK_x,RETROK_c,RETROK_v,RETROK_b,RETROK_m,RETROK_PERIOD},