Skip to content

Original events for keyboard, mouse and other simulated events won't work anymore when "gmtl_run_at_start = false" #10

@Dunkelalp

Description

@Dunkelalp

Current Behavior:

If I don't want to run the tests I can deactivate them by setting "gmtl_run_at_start" to false. If I do that no tests are done (thats fine) but any event which would be simulated in the tests like keyboard or mouse press events don't work anymore.

Expected Behavior:

Events which would be simulated in the tests like keyboard or mouse press events should work.

Steps to Reproduce:

  1. change "gmtl_run_at_start" to false in
    • either Libraries/GMTL/Setup/GMTL_definitions
    • or in your own macro definitions, e. g. #macro Development:gmtl_run_at_start false
  2. run your project
  3. if everything is loaded press any keyboard key or click any mouse button -> nothing happens

Environment:

GMTL: v.1.1.1b
Game Maker: 2024.13.1.193

Anything else:

I think I know the problem:

  • you skip the tests in function __gmtl_init() in Libraries/GMTL/Setup/GMTL_init
  • before skipping you set gmtl_internal.initializing = false;
  • now "gmtl_internal.initializing" and "gmtl_internal.finished" are both false which lead to the problem that in every simulation function the simulated value is returned instead of the original one
  • I could solve the problem by setting gmtl_internal.finished= true; before the return statement

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions