Starting b10

This commit is contained in:
Scott Duensing 2020-03-11 19:36:43 -05:00
parent ed1ed67292
commit f9b2be5a2e
5 changed files with 16 additions and 9 deletions

View file

@ -42,3 +42,5 @@ git clone https://github.com/raspberrypi/tools.git
wget https://raw.githubusercontent.com/riscv/riscv-poky/master/scripts/sysroot-relativelinks.py wget https://raw.githubusercontent.com/riscv/riscv-poky/master/scripts/sysroot-relativelinks.py
chmod +x sysroot-relativelinks.py chmod +x sysroot-relativelinks.py
./sysroot-relativelinks.py buster/ ./sysroot-relativelinks.py buster/
sudo apt-get install lib32z1

View file

@ -119,9 +119,14 @@ void showUsage(char *name, char *message) {
// Extract any missing support files. We do this here so they're not generated if launched from a front end. // Extract any missing support files. We do this here so they're not generated if launched from a front end.
if (!utilPathExists("Singe")) utilMkDirP("Singe", 0777); if (!utilPathExists("Singe")) utilMkDirP("Singe", 0777);
// Singe/Framework.singe
temp = utilCreateString("Singe%cFramework.singe", utilGetPathSeparator()); temp = utilCreateString("Singe%cFramework.singe", utilGetPathSeparator());
extractFile(temp, Framework_singe, Framework_singe_len); extractFile(temp, Framework_singe, Framework_singe_len);
free(temp); free(temp);
// Singe/controls.cfg.example
temp = utilCreateString("Singe%ccontrols.cfg.example", utilGetPathSeparator());
extractFile(temp, controls_cfg, controls_cfg_len);
free(temp);
temp = NULL; temp = NULL;
#ifdef _WIN32 #ifdef _WIN32

View file

@ -2143,15 +2143,15 @@ void processKey(bool down, int32_t keysym, int32_t scancode) {
_requestScreenShot = true; _requestScreenShot = true;
} }
} }
callLua(down ? "onInputPressed" : "onInputReleased", "ii", move, NOMOUSE); callLua(down ? "onInputPressed" : "onInputReleased", "i", move);
} }
} }
} }
} }
} else { } else {
// Full keyboard // Full keyboard
callLua(down ? "onInputPressed" : "onInputReleased", "ii", keysym, NOMOUSE); callLua(down ? "onInputPressed" : "onInputReleased", "i", keysym);
callLua(down ? "onKeyPressed" : "onKeyReleased", "i", scancode); callLua(down ? "onKeyPressed" : "onKeyReleased", "ii", keysym, scancode);
} }
} }
@ -2553,7 +2553,7 @@ void singe(SDL_Window *window, SDL_Renderer *renderer) {
y = (int32_t)(event.motion.y * _overlayScaleY); y = (int32_t)(event.motion.y * _overlayScaleY);
xr = (int32_t)(event.motion.xrel * _overlayScaleX); xr = (int32_t)(event.motion.xrel * _overlayScaleX);
yr = (int32_t)(event.motion.yrel * _overlayScaleY); yr = (int32_t)(event.motion.yrel * _overlayScaleY);
callLua("onMouseMoved", "iiiii", x, y, xr, yr, NOMOUSE); callLua("onMouseMoved", "iiiii", x, y, xr, yr, 0);
} }
break; break;

View file

@ -31,7 +31,7 @@
// Don't forget to update singe.rc! // Don't forget to update singe.rc!
#define SINGE_VERSION 2.00 #define SINGE_VERSION 2.00
#define VERSION_STRING "v2.00b9" #define VERSION_STRING "v2.00b10"
#define COPYRIGHT_END_YEAR "2020" #define COPYRIGHT_END_YEAR "2020"

View file

@ -1,7 +1,7 @@
101 ICON "/tmp/icon.ico" 101 ICON "/tmp/icon.ico"
1 VERSIONINFO 1 VERSIONINFO
FILEVERSION 2,0,0,9 FILEVERSION 2,0,0,10
PRODUCTVERSION 2,0,0,9 PRODUCTVERSION 2,0,0,10
BEGIN BEGIN
BLOCK "StringFileInfo" BLOCK "StringFileInfo"
BEGIN BEGIN
@ -9,12 +9,12 @@ BEGIN
BEGIN BEGIN
VALUE "CompanyName", "Kangaroo Punch Studios" VALUE "CompanyName", "Kangaroo Punch Studios"
VALUE "FileDescription", "Somewhat Interactive Nostalgic Game Engine" VALUE "FileDescription", "Somewhat Interactive Nostalgic Game Engine"
VALUE "FileVersion", "2.00b9" VALUE "FileVersion", "2.00b10"
VALUE "InternalName", "Singe" VALUE "InternalName", "Singe"
VALUE "LegalCopyright", "Copyright 2006-2020 Scott C. Duensing" VALUE "LegalCopyright", "Copyright 2006-2020 Scott C. Duensing"
VALUE "OriginalFilename", "singe.exe" VALUE "OriginalFilename", "singe.exe"
VALUE "ProductName", "Singe" VALUE "ProductName", "Singe"
VALUE "ProductVersion", "2.00b9" VALUE "ProductVersion", "2.00b10"
END END
END END
BLOCK "VarFileInfo" BLOCK "VarFileInfo"