CRopen_controller: Opens gamecontroller.

View source: R/CRopen_controller.R

CRopen_controllerR Documentation

Opens gamecontroller.

Description

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.

Usage

CRopen_controller(status = NULL)

Value

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.

Examples

  gc <- CRopen_controller()
  
  CRwait_ms(1000)
  
  CRclose(gc)

lorweiuk/CREx documentation built on March 16, 2024, 3:04 a.m.