Пример #1
0
        public int GetConnectedControllers(SteamHandle <SteamController>[] outHandles)
        {
            if (m_ConnectedControllers == null)
            {
                m_ConnectedControllers = new ControllerHandle_t[Constants.STEAM_CONTROLLER_MAX_COUNT];
            }
            var controllerCount = Steamworks.SteamController.GetConnectedControllers(m_ConnectedControllers);

            for (var i = 0; i < controllerCount; ++i)
            {
                outHandles[i] = new SteamHandle <SteamController>((ulong)m_ConnectedControllers[i]);
            }
            return(controllerCount);
        }
Пример #2
0
 public bool Equals(SteamHandle <TObject> other)
 {
     return(m_Handle == other.m_Handle);
 }
Пример #3
0
 public SteamDigitalActionData GetDigitalActionData(SteamHandle <SteamController> controllerHandle,
                                                    SteamHandle <InputAction> digitalActionHandle)
 {
     throw new System.NotImplementedException();
 }
Пример #4
0
 public SteamAnalogActionData GetAnalogActionData(SteamHandle <SteamController> controllerHandle,
                                                  SteamHandle <InputAction> analogActionHandle)
 {
     throw new System.NotImplementedException();
 }
Пример #5
0
 public int GetActiveActionSetLayers(SteamHandle <SteamController> controllerHandle,
                                     out SteamHandle <InputActionMap> handlesOut)
 {
     throw new System.NotImplementedException();
 }
Пример #6
0
 public void DeactivateAllActionSetLayers(SteamHandle <SteamController> controllerHandle)
 {
     throw new System.NotImplementedException();
 }
Пример #7
0
 public void DeactivateActionSetLayer(SteamHandle <SteamController> controllerHandle, SteamHandle <InputActionMap> actionSetLayerHandle)
 {
     throw new System.NotImplementedException();
 }
Пример #8
0
 public SteamHandle <InputActionMap> GetCurrentActionSet(SteamHandle <SteamController> controllerHandle)
 {
     throw new System.NotImplementedException();
 }
Пример #9
0
 public void ActivateActionSet(SteamHandle <SteamController> controllerHandle, SteamHandle <InputActionMap> actionSetHandle)
 {
     Steamworks.SteamController.ActivateActionSet(new ControllerHandle_t((ulong)actionSetHandle),
                                                  new ControllerActionSetHandle_t((ulong)actionSetHandle));
 }
Пример #10
0
 public void DeactivateSteamActionSetLayer(SteamHandle <InputActionMap> actionSet)
 {
     throw new NotImplementedException();
 }
Пример #11
0
 public void ActivateSteamActionSet(SteamHandle <InputActionMap> actionSet)
 {
     SteamSupport.GetAPIAndRequireItToBeSet().ActivateActionSet(steamControllerHandle, actionSet);
 }