View source: R/CRopen_controller.R
CRopen_controller | R Documentation |
Scans available devices, opens first gamecontroller among them, returns address of controller for eventual closing of device. In order to receives controller inputs via CRpoll_event
, controller has to be opened first.
CRopen_controller(status = NULL)
Returns list containing pointer to gamecontroller. Also contains integer valid
of value 1
if everything went well and a controller was found and opened, 0
otherwise.
gc <- CRopen_controller()
CRwait_ms(1000)
CRclose(gc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.