mirror of
https://github.com/Pecusx/libretro-atari800.git
synced 2026-05-20 22:33:22 +02:00
Control key handle
This commit is contained in:
+5
-3
@@ -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
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user