Control key handle

This commit is contained in:
Pecusx
2021-05-06 19:06:30 +02:00
parent e83ec6dc08
commit 77a945ae8e
2 changed files with 6 additions and 4 deletions
+5 -3
View File
@@ -45,6 +45,7 @@ extern char Key_Sate[512];
#include "retroscreen.h"
extern int SHIFTON;
extern int CTRLON;
extern int UI_is_active;
static int swap_joysticks = FALSE;
@@ -201,7 +202,8 @@ int PLATFORM_Keyboard(void)
INPUT_key_shift = 0;
/* CONTROL STATE */
if ((Key_Sate[RETROK_LCTRL]) || (Key_Sate[RETROK_RCTRL]))
//if ((Key_Sate[RETROK_LCTRL]) || (Key_Sate[RETROK_RCTRL]))
if (CTRLON == 1)
key_control = 1;
else
key_control = 0;
@@ -498,8 +500,8 @@ int PLATFORM_Keyboard(void)
if (Key_Sate[RETROK_3])return AKEY_HASH;
if (Key_Sate[RETROK_4])return AKEY_DOLLAR;
if (Key_Sate[RETROK_5])return AKEY_PERCENT;
if (Key_Sate[RETROK_6])return AKEY_CARET;
if (Key_Sate[RETROK_7])return AKEY_AMPERSAND;
if (Key_Sate[RETROK_6])return AKEY_AMPERSAND;
if (Key_Sate[RETROK_7])return AKEY_QUOTE;
if (Key_Sate[RETROK_8])return AKEY_AT;
if (Key_Sate[RETROK_9])return AKEY_PARENLEFT;
if (Key_Sate[RETROK_0])return AKEY_PARENRIGHT;
+1 -1
View File
@@ -14,7 +14,7 @@ Mvk MVk[NPLGN*NLIGN*2]={
{ " 2" ," \"" ,RETROK_2 },
{ " 3" ," #" ,RETROK_3 },
{ " 4" ," $" ,RETROK_4 },
{ " 5" ," %" ,RETROK_5 },
{ " 5" ," \%" ,RETROK_5 },
{ " 6" ," &" ,RETROK_6 },
{ " 7" ," \'" ,RETROK_7 },
{ " 8" ," @" ,RETROK_8 },