Table 1: Input processing sample codes using HTC Vive controller in integrated development environment based on Unity 3D and SteamVR plugin.

SteamVR_TrackedObject trackedObj;// 3D hand model that corresponds to controller
SteamVR_Controller.Device controller { get { returnSteamVR_Controller.Input((int)trackedObj.index); }}// controller device information (HTC Vive)
controller.GetTouch (btn) or controller.GetPressDown (btn)// controller button (key) input processing functions
SteamVR_Controller.ButtonMask.Touchpador SteamVR_Controller.ButtonMask.Trigger// buttons that can be processed by the controller
Ex) controller.GetPressDown (SteamVR Controller.Button-Mask.Trigger)// example of an implementation of button input through the input processing function
SteamVR_Controller.Input ((int)trackedObj.index).Trigger-HapticPulse (1000);// vibration setting of the controller