Knobster does not call back when pressed

Support for the SimWareKits Knobster in combination with Air Manager and Air Player

Moderators: russ, Ralph

Post Reply
Message
Author
Tetrachromat
Posts: 264
Joined: Sun Feb 14, 2021 6:55 pm

Knobster does not call back when pressed

#1 Post by Tetrachromat »

I recently had a case where I needed to implement the "pressed" callback for a dial using the following syntax from the WIKI page:

Code: Select all

dial_id = dial_add(image, x, y, width, height, direction_callback, pressed_callback)
All works well as long as my Knobster is deactivated. When I use the mouse to click on the dial the "pressed_callback" is called and executed properly.

But when my Knobster is activated and I press the Knobster pushbutton the "pressed_callback" is not called.

The WIKI page about using the Knobster says
Only buttons that are incorporated into a dial or switch can be operated by pressing the inner knob (Push button).
What does "incorporated" mean?
What do I need to do to "incorporate" a button into a dial?

Paul
SW-Setup: AirManager 5 - Windows 11 - MSFS2024
HW-Setup: ROG-STRIX B650E - 32 GB - AMD Ryzen 7 7800X3D - RTX 4080 16GB
Flying: General Aviation Piston & Turboprops - Helicopters Cabri G2 & HYPE H145 - FBW Airbus A320nx

User avatar
Ralph
Posts: 8517
Joined: Tue Oct 27, 2015 7:02 pm
Location: De Steeg
Contact:

Re: Knobster does not call back when pressed

#2 Post by Ralph »

That means basically that the button is within the boundaries of the dial. There's no pressed in released like with a touch screen when you use a Knobster. A button would be the solution.

Post Reply