better physics
This commit is contained in:
24
engine/humandevice.cpp
Normal file
24
engine/humandevice.cpp
Normal file
@@ -0,0 +1,24 @@
|
||||
#include "humandevice.h"
|
||||
#include "tier1/interface.h"
|
||||
|
||||
class CHumanDeviceManager: public IHumanDeviceManager
|
||||
{
|
||||
public:
|
||||
virtual void SetButtonPressed( EInputButton eButton ) override;
|
||||
virtual void SetButtonUnpressed( EInputButton eButton ) override;
|
||||
|
||||
bool m_abIsButtonPressed[k_EInputButton_Count];
|
||||
};
|
||||
|
||||
void CHumanDeviceManager::SetButtonPressed( EInputButton eButton )
|
||||
{
|
||||
m_abIsButtonPressed[eButton] = true;
|
||||
}
|
||||
|
||||
void CHumanDeviceManager::SetButtonUnpressed( EInputButton eButton )
|
||||
{
|
||||
m_abIsButtonPressed[eButton] = false;
|
||||
}
|
||||
|
||||
|
||||
EXPOSE_INTERFACE_GLOBALVAR(CHumanDeviceManager, IHumanDeviceManager, HUMAN_DEVICE_MANAGER_INTERFACE_VERSION, g_pHumanDeviceManager)
|
||||
Reference in New Issue
Block a user