summaryrefslogtreecommitdiffhomepage
path: root/src/engineapi.c
diff options
context:
space:
mode:
authorMichael Smith <mikesmiffy128@gmail.com>2022-12-25 11:03:50 +0000
committerMichael Smith <mikesmiffy128@gmail.com>2022-12-25 11:03:50 +0000
commit9a09c605402e6ff74f93f7fe7afc50ccc785acc3 (patch)
tree0a098cecec7e0787023df9ad4c2f6d915817bdea /src/engineapi.c
parentf6fb10a7d3bfb59a729ee4b7a9368632ab52077a (diff)
Add basic mouse input scaling
Diffstat (limited to 'src/engineapi.c')
-rw-r--r--src/engineapi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/engineapi.c b/src/engineapi.c
index 8cc3dd6..b2272f9 100644
--- a/src/engineapi.c
+++ b/src/engineapi.c
@@ -40,6 +40,8 @@ struct VEngineServer *engserver;
DECL_VFUNC(void *, GetGlobalVars, 1)
void *globalvars;
+void *inputsystem;
+
DECL_VFUNC_DYN(void *, GetAllServerClasses)
DECL_VFUNC(int, GetEngineBuildNumber_newl4d2, 99) // duping gamedata entry, yuck
@@ -71,6 +73,8 @@ bool engineapi_init(int pluginver) {
void *pim = factory_server("PlayerInfoManager002", 0);
if (pim) globalvars = GetGlobalVars(pim);
+ inputsystem = factory_inputsystem("InputSystemVersion001", 0);
+
void *srvdll;
// TODO(compat): add this back when there's gamedata for 009 (no point atm)
/*if (srvdll = factory_engine("ServerGameDLL009", 0)) {