From 38ff5e1c89ce219f14daea00b63bb3b9fd072943 Mon Sep 17 00:00:00 2001 From: terminx Date: Wed, 30 Jan 2019 09:36:56 +0000 Subject: [PATCH] Add mousebits gamevar to m32script for querying mouse button states git-svn-id: https://svn.eduke32.com/eduke32@7324 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/m32vars.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/duke3d/src/m32vars.cpp b/source/duke3d/src/m32vars.cpp index 11521b38e..386b83475 100644 --- a/source/duke3d/src/m32vars.cpp +++ b/source/duke3d/src/m32vars.cpp @@ -615,6 +615,7 @@ static void Gv_AddSystemVars(void) Gv_NewVar("mousxplc",(intptr_t)&mousxplc, GAMEVAR_READONLY | GAMEVAR_INTPTR | GAMEVAR_SYSTEM); Gv_NewVar("mousyplc",(intptr_t)&mousyplc, GAMEVAR_READONLY | GAMEVAR_INTPTR | GAMEVAR_SYSTEM); + Gv_NewVar("mousebits",(intptr_t)&g_mouseBits, GAMEVAR_INTPTR | GAMEVAR_SYSTEM); Gv_NewVar("zoom",(intptr_t)&zoom, GAMEVAR_READONLY | GAMEVAR_INTPTR | GAMEVAR_SYSTEM); Gv_NewVar("drawlinepat",(intptr_t)&m32_drawlinepat, GAMEVAR_INTPTR | GAMEVAR_SYSTEM);