Created
August 17, 2015 08:26
-
-
Save dpasca/c307559aed3c66b0d8e9 to your computer and use it in GitHub Desktop.
Event recording
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// sure cost | |
void GameMain::UIInputTouchBegan( void *id, float x, float y ) | |
{ | |
DASSERT( !mEventLock ); mEventLock = true; | |
mEventData.WriteValue<u_int>( EVT_TOUCH_BEGAN ); | |
mEventData.WriteValue<void *>( id ); | |
mEventData.WriteValue<float>( x ); | |
mEventData.WriteValue<float>( y ); | |
mEventLock = false; | |
} | |
// not sure cost | |
void GameMain::UIInputTouchEnded( void *id, float x, float y ) | |
{ | |
mEventList.push_back([=](){ _UIInputTouchEnded(id,x,y); }); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment