Skip to content
Permalink
Browse files

qualify with enigma_user:: and delete some win32 garbo

  • Loading branch information...
RobertBColton committed Jun 12, 2019
1 parent 2b2d6b2 commit e86f464ac7dfc083ad9a92187b1a36a82e441576
@@ -23,7 +23,7 @@ using std::map;
#include <windows.h>
//#include <winuser.h> // includes windows.h

#include "Platforms/General/PFmain.h"
#include "Platforms/General/PFmain.h" // for keyboard_string
#include "Platforms/General/PFwindow.h" // For those damn vk_ constants.
#include "Universal_System/Instances/instance_system.h"
#include "Universal_System/Instances/instance.h"
@@ -35,10 +35,6 @@ using std::map;
#endif

namespace enigma_user {
extern int keyboard_key;
extern int keyboard_lastkey;
extern string keyboard_lastchar;
extern string keyboard_string;
void draw_clear(int col);
void screen_set_viewport(gs_scalar x, gs_scalar y, gs_scalar width, gs_scalar height);
}
@@ -71,7 +71,7 @@ int handleEvents() {
if (len > 0) {
enigma_user::keyboard_lastchar = string(1, str[0]);
if (actualKey == enigma_user::vk_backspace) {
if (!keyboard_string.empty()) keyboard_string.pop_back();
if (!enigma_user::keyboard_string.empty()) enigma_user::keyboard_string.pop_back();
} else {
enigma_user::keyboard_string += enigma_user::keyboard_lastchar;
}

0 comments on commit e86f464

Please sign in to comment.
You can’t perform that action at this time.