WhiteMagic / JoystickGremlin

A tool for configuring and managing joystick devices.
http://whitemagic.github.io/JoystickGremlin/
GNU General Public License v3.0
313 stars 45 forks source link

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

Closed WesCov closed 1 year ago

WesCov commented 1 year ago

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

WesCov commented 1 year ago

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.

WhiteMagic commented 1 year ago

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.