<commit_before>﻿using UnityEngine;
using System.Collections;
using NewtonVR;

public abstract class NVRDriver : MonoBehaviour {

    public NVRPlayer Player;
    public NVRHead Head;
    public NVRHand LeftHand;
    public NVRHand RightHand;

    /// <summary>
    /// Event fired any time the poses for the hands or head are updated
    /// </summary>
    public delegate void NewPosesEvent();
    public NewPosesEvent OnNewPoses;

    public abstract NVRButtonInputs GetButtonState(NVRHand hand, NVRButtonID button);

    public abstract void TriggerHapticPulse(ushort durationMicroSec);
    public abstract void LongHapticPulse(float seconds);

    public abstract string GetDeviceName(NVRHand hand);
    public abstract string GetDeviceName(NVRHead head);
}<commit_msg>Additional documentation for NVRDriver<commit_after>﻿using UnityEngine;
using System.Collections;
using NewtonVR;

public abstract class NVRDriver : MonoBehaviour {

    public NVRPlayer Player;
    public NVRHead Head;
    public NVRHand LeftHand;
    public NVRHand RightHand;

    /// <summary>
    /// Event fired any time the poses for the hands or head are updated
    /// </summary>
    public delegate void NewPosesEvent();
    public NewPosesEvent OnNewPoses;

    /// <summary>
    /// Retrieves button state (pressed/up, etc) for whatever device the given hand is using
    /// </summary>
    /// <param name="hand">Which hand to look up button states for</param>
    /// <param name="button">Which button to check (dev is responsible for mapping NVRButtonID to their device's buttons)</param>
    /// <returns>Complete state of given button for the current frame</returns>
    public abstract NVRButtonInputs GetButtonState(NVRHand hand, NVRButtonID button);

    public abstract void TriggerHapticPulse(ushort durationMicroSec);
    public abstract void LongHapticPulse(float seconds);

    public abstract string GetDeviceName(NVRHand hand);
    public abstract string GetDeviceName(NVRHead head);
}
{'fraction_non_alphanumeric': 0.07502517623363544, 'fraction_numerical': 0.0, 'mean_word_length': 3.906172839506173, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1179790', 'n_tokens_mistral': 542, 'n_tokens_neox': 522, 'n_words': 195}