DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ OnFrame()

void PluginBase::OnFrame ( )
inlineprivate

См. определение в файле PluginKeyBinding.c строка 246

247 {
248 for ( int i = 0; i < m_MouseButtons.Count(); ++i )
249 {
250 MouseButtonInfo info = m_MouseButtons.Get(i);
251
252 if ( info.IsButtonDown() )
253 {
254 int time_curr = g_Game.GetTime();
255 int time_hold = info.GetTimeLastPress() + HOLD_CLICK_TIME_MIN;
256
257 if ( time_hold < time_curr )
258 {
259 //Log("MB_EVENT_DRAG");
260
262 }
263 }
264 }
265 }
DayZGame g_Game
Определения DayZGame.c:4074
int GetTimeLastPress()
Определения MouseButtonInfo.c:19
bool IsButtonDown()
Определения MouseButtonInfo.c:39
int GetButtonID()
Определения MouseButtonInfo.c:14
ref array< ref MouseButtonInfo > m_MouseButtons
Определения PluginKeyBinding.c:288
void OnMouse(int event_id, int button)
Определения PluginKeyBinding.c:343
const int HOLD_CLICK_TIME_MIN
Определения PluginKeyBinding.c:285
const int MB_EVENT_DRAG
Определения PluginKeyBinding.c:11

Перекрестные ссылки g_Game, MouseButtonInfo::GetButtonID(), MouseButtonInfo::GetTimeLastPress(), HOLD_CLICK_TIME_MIN, MouseButtonInfo::IsButtonDown(), m_MouseButtons, MB_EVENT_DRAG и OnMouse().

Используется в OnDestroy() и OnInit().