J :
* Fix u32 into JButtons. * Add a few comments. * Remove useless variables.
This commit is contained in:
@@ -95,7 +95,6 @@ class JGE
|
||||
bool mCriticalAssert;
|
||||
const char *mAssertFile;
|
||||
int mAssertLine;
|
||||
u32 tickFrequency;
|
||||
|
||||
|
||||
static JGE* mInstance;
|
||||
|
||||
+1
-1
@@ -51,7 +51,7 @@ class JGuiObject
|
||||
virtual void Update(float dt);
|
||||
|
||||
virtual void Entering(); // when focus is transferring to this obj
|
||||
virtual bool Leaving(u32 key); // when focus is transferring away from this obj, true to go ahead
|
||||
virtual bool Leaving(JButton key); // when focus is transferring away from this obj, true to go ahead
|
||||
virtual bool ButtonPressed(); // action button pressed, return false to ignore
|
||||
|
||||
int GetId();
|
||||
|
||||
+1
-9
@@ -24,7 +24,6 @@
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
#if defined (WIN32) // WIN32 specific code
|
||||
#include "../../Dependencies/include/png.h"
|
||||
#include "../../Dependencies/include/fmod.h"
|
||||
|
||||
u8 JGE::GetAnalogX()
|
||||
@@ -44,7 +43,6 @@ u8 JGE::GetAnalogY()
|
||||
|
||||
#elif defined (LINUX) // Unix specific code
|
||||
#include <sys/time.h>
|
||||
#include "png.h"
|
||||
#include "../Dependencies/include/fmod.h"
|
||||
|
||||
|
||||
@@ -253,7 +251,7 @@ void JGE::Init()
|
||||
|
||||
void JGE::SetDelta(float delta)
|
||||
{
|
||||
mDeltaTime = (float)delta;
|
||||
mDeltaTime = delta;
|
||||
}
|
||||
|
||||
float JGE::GetDelta()
|
||||
@@ -279,12 +277,6 @@ void JGE::Init()
|
||||
mDebug = false;
|
||||
#endif
|
||||
|
||||
#if defined (WIN32) || defined (LINUX)
|
||||
tickFrequency = 120;
|
||||
#else
|
||||
tickFrequency = sceRtcGetTickResolution();
|
||||
#endif
|
||||
|
||||
if (mDebug)
|
||||
pspDebugScreenInit(); // do this so that we can use pspDebugScreenPrintf
|
||||
|
||||
|
||||
+1
-1
@@ -28,7 +28,7 @@ JGuiObject::~JGuiObject()
|
||||
}
|
||||
|
||||
|
||||
bool JGuiObject::Leaving(u32 key __attribute__((unused)))
|
||||
bool JGuiObject::Leaving(JButton key __attribute__((unused)))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user