WhiteMagic / JoystickGremlin

A tool for configuring and managing joystick devices.

Home Page:http://whitemagic.github.io/JoystickGremlin/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Plugin configurable variables .value always reporting the initial value not the current value

WesCov opened this issue · comments

I have a very simple plugin to play with the ui. All 3 inputs display, are changeable, and their values are saved in a profile but the .value property in the plugin code only reports the initial values when looking in the logs

image

The log shows how the values do not match the controls and are the initial values:
image

I understand how it works now. The control values are read at the time the profile is run, and read only at that time. I was mistakenly thinking the code would reflect the changes as the controls were changed.

The values do change but where you placed the log call does not happen at the time you were thinking. A callback would reflect the actual value.