I`m using glfw to handle pads (DarksdK only supports one pad at once) so I`ve done a little test to see if they work together. While they apear to work fine I`ve noticed that the programs memory usage just increases over time. Is this normal behaver? I haven`t left it long for fear of crashing my pc but it got up to 20 megs and didn`t show any sine of stopping.
#include <DarkSDK.h>
#include <GL/glfw.h>
void DarkSDK()
{
glfwInit();
//glfwGetJoystickParam( int joy, int param );
float position[ 2 ];
dbSyncOn();
dbSyncRate(0);
while (LoopSDK())
{
dbCLS();
glfwGetJoystickPos( GLFW_JOYSTICK_1, position, 2 );
dbText(0,0,dbStr(position[0]));
dbText(0,20,dbStr(position[1]));
dbSync();
}
glfwTerminate();
}
P.S LoopSDK just returns a 0 when the x button is clicked right? Just worrying if my program actually gets to glfwTerminate();.
Gimme teh votez!!!!