This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
docs:blox:examples-inputs-events [2024/08/20 12:45] admin |
docs:blox:examples-inputs-events [2024/08/26 17:48] (current) admin |
||
---|---|---|---|
Line 16: | Line 16: | ||
This approach allows for more nuanced control based on the varying data the sensor provides. | This approach allows for more nuanced control based on the varying data the sensor provides. | ||
+ | |||
+ | {{: | ||
---- | ---- | ||
Line 25: | Line 27: | ||
For example, a motion sensor might detect movement (on) or no movement (off). | For example, a motion sensor might detect movement (on) or no movement (off). | ||
- | Since digital sensors only have these two states, your code simply checks whether the sensor is triggered or not and reacts accordingly. | + | Since digital sensors only have these two states, your program |
This type of sensor is often used for straightforward tasks like detecting the presence of an object or whether a button has been pressed. | This type of sensor is often used for straightforward tasks like detecting the presence of an object or whether a button has been pressed. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== 6.3.2 PS2 Gamepad as an Input Device ===== | ||
+ | |||
+ | BLOX supports using a PS2 gamepad as an input device | ||
+ | |||
+ | {{: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | ---- | ||
+ | |||