mirror of
https://github.com/sojamo/controlp5
synced 2024-11-22 05:57:57 +01:00
Fixed Event Handler Code example
This commit is contained in:
parent
f872cb4107
commit
ca5728cbaf
@ -310,7 +310,7 @@ To change the order of controllers, use Controller.bringToFront() which will pos
|
|||||||
To render controllers into separate windows please see example [ControlP5frames](examples/use/ControlP5frames/ControlP5frames.pde), this example demonstrates how to open multiple frames each running its own instance of ControlP5. With previous version of ControlP5 the ControlWindow class would allow you to add and open new windows with 1 command, this comand though has been removed when all references to java.awt.* had been removed to make ControlP5 work with Android.
|
To render controllers into separate windows please see example [ControlP5frames](examples/use/ControlP5frames/ControlP5frames.pde), this example demonstrates how to open multiple frames each running its own instance of ControlP5. With previous version of ControlP5 the ControlWindow class would allow you to add and open new windows with 1 command, this comand though has been removed when all references to java.awt.* had been removed to make ControlP5 work with Android.
|
||||||
|
|
||||||
## <a name="events"></a>Event Handling
|
## <a name="events"></a>Event Handling
|
||||||
` import controlP5.*;
|
```java import controlP5.*;
|
||||||
|
|
||||||
|
|
||||||
boolean on = false;
|
boolean on = false;
|
||||||
@ -360,7 +360,8 @@ public void ButtonA(boolean flag) {
|
|||||||
{
|
{
|
||||||
on = false;
|
on = false;
|
||||||
}
|
}
|
||||||
}`
|
}
|
||||||
|
```
|
||||||
#### Linking a Variable or Function to a Controller
|
#### Linking a Variable or Function to a Controller
|
||||||
|
|
||||||
#### ControlEvent
|
#### ControlEvent
|
||||||
|
Loading…
Reference in New Issue
Block a user