eeros_architecture:hal:input_devices
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
eeros_architecture:hal:input_devices [2017/05/03 07:56] – [Mouse Input] graf | eeros_architecture:hal:input_devices [2021/04/16 11:52] (current) – [XBox Input] ursgraf | ||
---|---|---|---|
Line 2: | Line 2: | ||
===== Mouse Input ===== | ===== Mouse Input ===== | ||
You can use a mouse for position information or its button states. In the control system you create an instance of type [[eeros_architecture: | You can use a mouse for position information or its button states. In the control system you create an instance of type [[eeros_architecture: | ||
- | It is also possible to check for mouse input in the safety system by means of critival | + | It is also possible to check for mouse input in the safety system by means of critical |
- | | + | |
- | | + | |
- | | + | |
As an example you could define a critical input in the safety system as follows | As an example you could define a critical input in the safety system as follows | ||
<code cpp> | <code cpp> | ||
Line 11: | Line 11: | ||
criticalInputs = { in1 }; | criticalInputs = { in1 }; | ||
</ | </ | ||
- | A more complete example is given in [[getting_started: | + | A more complete example is given in [[getting_started: |
WARNING The HAL will contain the three inputs mentioned above only after the control system created its [[eeros_architecture: | WARNING The HAL will contain the three inputs mentioned above only after the control system created its [[eeros_architecture: | ||
===== XBox Input ===== | ===== XBox Input ===== | ||
You can use a XBox controller for position information or its button states. In the control system you create an instance of type [[eeros_architecture: | You can use a XBox controller for position information or its button states. In the control system you create an instance of type [[eeros_architecture: | ||
- | It is also possible to check for mouse input in the safety system by means of critival | + | It is also possible to check for XBox input in the safety system by means of critical |
- | - leftMouseButton | + | - XBoxButtonA |
- | - middleMouseButton | + | - XBoxButtonB |
- | - rightMouseButton | + | - XBoxButtonX |
+ | - XBoxButtonY | ||
+ | - XBoxButtonLB | ||
+ | - XBoxButtonRB | ||
+ | - XBoxButtonBack | ||
+ | - XBoxButtonStart | ||
As an example you could define a critical input in the safety system as follows | As an example you could define a critical input in the safety system as follows | ||
<code cpp> | <code cpp> | ||
- | Input< | + | Input< |
criticalInputs = { in1 }; | criticalInputs = { in1 }; | ||
</ | </ | ||
- | A more complete example is given in [[getting_started: | + | A more complete example is given in [[getting_started: |
+ | WARNING The HAL will contain the three inputs mentioned above only after the control system created its [[eeros_architecture: |
eeros_architecture/hal/input_devices.1493790985.txt.gz · Last modified: 2017/05/03 07:56 (external edit)