Okay, confirmed in the google list and added and confirmed in the TGC AppGameKit CT site.
Using the basic Mac template, this is the code for the template.cpp file that demonstrates the issue:
// Includes
#include "template.h"
// standard classes
#include <string>
// Namespace
using namespace AGK;
app App;
/////////////////////////////////////////
// LOCAL VARIABLES //////////////////////
/////////////////////////////////////////
std::string press_check = "";
/////////////////////////////////////////
// LOCAl FUNCTIONS //////////////////////
/////////////////////////////////////////
void add_key_function_used(const char* func_name,int keynum)
{
// save the current value
std::string hold = press_check;
// safely get the key number
char key[50];
sprintf(key,"%d",keynum);
// create new one
press_check = "\n";
press_check += func_name;
press_check += key;
press_check += ") detected";
// add the old string
press_check += hold;
}
/////////////////////////////////////////
// CLASS IMPLEMENTATION /////////////////
/////////////////////////////////////////
void app::Begin(void)
{
agk::SetVirtualResolution (1024, 768);
agk::SetClearColor( 151,170,204 ); // light blue
agk::SetSyncRate(60,0);
agk::SetScissor(0,0,0,0);
}
void app::Loop (void)
{
// check for pointer press
if (agk::GetPointerPressed())
{
// force close
glfwCloseWindow();
// skip sync
return;
}
// check for key presses on the escape key and the one key
if(agk::GetRawKeyPressed(27)) add_key_function_used("GetRawKeyPressed(",27);
if(agk::GetRawKeyReleased(27)) add_key_function_used("GetRawKeyReleased(",27);
if(agk::GetRawKeyState(27)) add_key_function_used("GetRawKeyState(",27);
if(agk::GetRawKeyPressed(49)) add_key_function_used("GetRawKeyPressed(",49);
if(agk::GetRawKeyReleased(49)) add_key_function_used("GetRawKeyReleased(",49);
if(agk::GetRawKeyState(49)) add_key_function_used("GetRawKeyState(",49);
// show that something is happening, only needed for bare template
agk::Print("Checking Esc and one keys\nTouch with mouse to exit");
agk::Print(agk::ScreenFPS());
agk::Print(press_check.c_str());
// sync the display
agk::Sync();
}
void app::End (void)
{
}
Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master