MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / IsButtonDown

Method IsButtonDown

Source/PSMoveMgr.cpp:92–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92bool PSMoveMgr::IsButtonDown(int id, PSMove_Button button)
93{
94 if (mMove[id])
95 {
96 int currentButtons = psmove_get_buttons(mMove[id]);
97 return currentButtons & button;
98 }
99 return false;
100}
101
102float PSMoveMgr::GetBattery(int id)
103{

Callers 1

PollMethod · 0.80

Calls 1

psmove_get_buttonsFunction · 0.50

Tested by

no test coverage detected