Results 1 to 2 of 2

Thread: ogl.setup 'consuming' key press (isKeyDown won't work if it's called)

  1. #1
    Join Date
    Oct 2015
    Location
    Nowhere
    Posts
    134
    Mentioned
    2 Post(s)
    Quoted
    64 Post(s)

    Default ogl.setup 'consuming' key press (isKeyDown won't work if it's called)

    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

  2. #2
    Join Date
    Jun 2014
    Posts
    463
    Mentioned
    27 Post(s)
    Quoted
    229 Post(s)

    Default

    You'll also notice sending the enter key is also not functioning. I've been looking for a solution.
    Tsunami

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •