The button becomes unclickable after setting view and zoom. It seems like we need a FixToScreen command for buttons? Didn't have this issue in earlier versions.
Simple example that will demo this bug. Tested in Visual Studio 2015 32-bit version.
Edit: also the same issue with the onscreen virtual joystick
// Includes
#include "template.h"
// Namespace
using namespace AGK;
app App;
void app::Begin(void)
{
agk::SetVirtualResolution (100, 100);
agk::SetClearColor( 151,170,204 ); // light blue
agk::SetSyncRate(60,0);
agk::SetScissor(0,0,0,0);
agk::AddVirtualButton(1, 50, 50, 10);
agk::SetViewZoom(0.3f);
agk::SetViewOffset(-10, -10);
}
int app::Loop (void)
{
agk::Print(agk::GetVirtualButtonState(1)); // Doesn't show 1 when clicked
agk::Sync();
return 0; // return 1 to close app
}
void app::End (void)
{
}
Cheers!
Parry