This PR adds a simple framework that can be used to implement debugging tools. It generates a menu which can be controlled using the keyboard or mouse. The code isn't documented yet, but the line example should give a good impression of how it can be used.
Controls:
Up, down -> select menu item
Left, right -> change value of an i32 or u32
Space, return, middle mouse button -> (de)activate menu item
Active menu items handle all input events until they are deactivated. This can be used to move a point in all directions by using the cursor keys.
Mouse wheel -> select an menu item or change the value of an active i32 or u32
This PR adds a simple framework that can be used to implement debugging tools. It generates a menu which can be controlled using the keyboard or mouse. The code isn't documented yet, but the
line
example should give a good impression of how it can be used.Controls:
i32
oru32
i32
oru32