BASIC

Author Topic: Many strange Bugs.  (Read 264 times)

Offline Snoopy

  • Dr. Type
  • ****
  • Posts: 284
    • View Profile
Many strange Bugs.
« on: 2019-Aug-04 »
I encountered a lot of bugs while working on my 3D demo.
I have to admit that this is starting to worry me.
There are bugs with the KEY function, but not only.

I hope it comes from my old PC, otherwise there is really a big problem with GLBasic :(

There is a problem when mixing KEY("space") and KEY("arrow").
I don't speak English well so I'm only talking about this bug, I'll see later to explain the others (more special).

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2626
    • View Profile
Re: Many strange Bugs.
« Reply #1 on: 2019-Aug-04 »
Drop a simple, few lines demo, here and we’ll test it on our hardware.
Cheers,

Ian.

“It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration.”
(E. W. Dijkstra)

Offline erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4212
    • View Profile
    • Portfolio
Re: Many strange Bugs.
« Reply #2 on: 2019-Aug-05 »
Yes, like Bigsofty said, drop a test for us to try on different hardware.
I get very weird behaviour on my machine when it comes to sound, but that does not happen on any other machine tried (and I tried MANY).
In my case, it has to do with sound card without proper drivers, not a GLB bug.

Offline Snoopy

  • Dr. Type
  • ****
  • Posts: 284
    • View Profile
Re: Many strange Bugs.
« Reply #3 on: 2019-Aug-07 »
If you press up + left + space, the space key doesn't work.
It's the same for down + left + space.

Code: GLBasic [Select]
LOCAL k_space = 57
LOCAL k_up = 200
LOCAL k_down = 208
LOCAL k_left = 203
LOCAL k_right = 205

WHILE TRUE
        IF KEY(k_space) THEN PRINT "Space", 0, 0
       
        IF KEY(k_up) THEN  PRINT "Up", 0, 20
        IF KEY(k_down) THEN  PRINT "Down", 0, 30
        IF KEY(k_left) THEN  PRINT "Left", 0, 40
        IF KEY(k_right) THEN  PRINT "Right", 0, 50
       
        SHOWSCREEN
WEND
 

Offline erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4212
    • View Profile
    • Portfolio
Re: Many strange Bugs.
« Reply #4 on: 2019-Aug-08 »
Seems to work fine on my end, I can even press all keys together and it shows.

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10709
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: Many strange Bugs.
« Reply #5 on: 2019-Aug-08 »
It might be your keyboard hardware or driver. Many keyboards only support 2 keys at a time, or disallow some combinations. Can you try another keyboard?
My keyboard here has a problem, when I hold shift, and quickly type something with an 'N'. The 'N' always gets dropped. That's a pain, when you have types like
MOVING and you type MOVIG.

Offline Snoopy

  • Dr. Type
  • ****
  • Posts: 284
    • View Profile
Re: Many strange Bugs.
« Reply #6 on: 2019-Aug-08 »
I used another keyboard (a microsoft) and it's the same problem.
But I can confirm that it is not GLBasic that is responsible because I programmed the same test directly in C and it's the same too.

Well ... I'll leave this bug for now, I'll use other keys for my demo.

Thank you everyone.

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3669
    • View Profile
    • Space Fractal
Re: Many strange Bugs.
« Reply #7 on: 2019-Aug-10 »
This is not a glbasic bug, its a keyboard hardware ghosting issue you is seeing.

This is very common in many keyboards as well, if not all.

This is depend how the matrix have been setup in the keyboard.

This is why im newer use spacebar for the main button by default.


« Last Edit: 2019-Aug-10 by spacefractal »
Greedy Mouse - Karma Miwa - Spot Race - CatchOut - Android Extras - is on a vacation trip, home before end of few days in jan.