StickView:
Filter:
Description
Class methods
new
Inherited class methods
Instance methods
refresh
x
init
y
rho
point
hatval
polar
angle
value
uview
Inherited instance methods
Examples
Classes (extension)
|
GUI
StickView
Extension
a view for joystick thumbsticks
Location:
NOT INSTALLED!
See also:
Modality
,
MKtl
,
MKtlElement
,
CompassView
Description
First code examples:
w = Window("StickView").front.alwaysOnTop_(true); z = StickView(w, Rect( 200, 100,100,100)); z.action = { |v| v.value.postln }; // z.name = "test"; z.value = [-1,1]; // x, y, optional hat button z.value = Array.rand(2, -1.0, 1.0).postln; z.valueAction = Array.rand(2, -1.0, 1.0).postln; z.action = { |v| v.value.postln }; z.valueAction = [1.rand2,1.rand2, 2.rand] .postln;
⧉
✔
Class Methods
.
new
Arguments:
parent
bounds
Inherited class methods
Instance Methods
.
refresh
.
x
Arguments:
val
.
init
Arguments:
parent
bounds
.
y
Arguments:
val
.
rho
.
point
Arguments:
pt
.
hatval
.
polar
.
angle
.
value
Arguments:
val
.
uview
Inherited instance methods
Examples
_some_example_code_
⧉
✔
helpfile source:
/tmp/scquark_hs/adclib/HelpSource/Classes/StickView.schelp
link::Classes/StickView::