Simba Code:
program ogLib;
{$i ogLib\lib\core\core.simba}
procedure test;
begin
ogl.setDebugMode('textures');
while(true)do
if(isKeyDown(9))then
writeln('key down');
end;
begin
ogl.setup([850, 650], [0, 0, 800, 600]); //if this is called, isKeyDown does not work
test();
end.
This is a problem since I am unable to use the oglib ID toolkit. I can just use ogl.get with tbox param, but I'd prefer to use ID tool since it's very convenient.
Any ideas?
EDIT:
Narrowed down the exact line which is causing this. It's in C:\Simba\Includes\ogLib\lib\misc\smart.simba, line 206
Simba Code:
setEIOSTarget('libsmartremote',toStr(self.pid));
So that's the method that I guess enables the smart mouse and such, since when I comment it out SMART uses my own mouse. It didn't used to render isKeyDown useless. For now I will just disable it when I need to use isKeyDown, but would be nice to have a solution, if there is one