Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug Reports
#31
Quote:doesn't SDL have input handleing ?
Yeah, SDL_GetKeys

Like: I don't know if this would work.

Code:
Dim K as ubyte Ptr

k = SDL_GetKeys(0)

if Peek(K+ SDLK_UP) then
    doup
end if
y smiley is 24 bit.
[Image: anya2.jpg]

Genso's Junkyard:
http://rel.betterwebber.com/
Reply
#32
Quote:yeah and? whats the point? the thing is inkey$ is a runtime library function. it must be overwritten when you use sdl, or win32 api or whatever other graphical api that comes to your mind, that starts a message queue

my point was if your going to be working with in a lib then you have to accepted that some of your runtime stuff won't work. and will have to use what the lib it self gives you. it not the job of the run time to handle every possible situation where it's fucation might get steped on.
Reply
#33
jupp Smile sorry if i tend to have an aggressive tone, it's not my intention
quote="NecrosIhsan"]
[Image: yagl1.png]
[/quote]
Reply
#34
hmm... this program (same program as last time, the menu's one) doesn't show any bugs in the external text file, yet there must be a few bugs, as it isn't compiled. Does the compiler output ALL the error messages?

::EDIT::

Nevermind, i just ran it through command prompt, and i got this.

free.asm:539: Error: Suffix or operand invalid for 'cmp'

of course, in all my ignorance i have no idea what that means.
Jumping Jahoolipers!
Reply
#35
cmp = compare

can you post the line of that the error occurec. Free.asm
y smiley is 24 bit.
[Image: anya2.jpg]

Genso's Junkyard:
http://rel.betterwebber.com/
Reply
#36
Shadow Wolf: you are using the old version, download the 0.02, that's the same bug as von/marzec reported.

barok: i will fix that bug when i get back, already saw what is happening - btw, "NEXT a, b, c" is not supported, that's not a bug - see docs/keywords.txt for the differences.

Z!re: inkey$ doesn't work in anything but console windows, try PB or C and you won't have even an inkey$ to play with.

marzec: i released it as BETA if you didn't notice, exactly for this.
Reply
#37
dude i was joking....
quote="NecrosIhsan"]
[Image: yagl1.png]
[/quote]
Reply
#38
I didn't think it was a bug, but i just posted it just in case it's something you overlooked.

cmp esi, st(0)
Jumping Jahoolipers!
Reply
#39
Fixed, download the lastest version: http://prdownloads.sourceforge.net/fbc/f...p?download (that's just fbc.exe)

Btw, that menu code is buggy, there's nothing to RESTORE, and the var "numbofchoices" doesn't exist (it's "numofchoices").

Also, you gotta change those chr$(0) to chr$(255), null's can't be part of strings, so inkey$ returns 255 instead of 0 with extended key codes - that's shown in the docs\keywords.txt and will be included in the docs/faq.


It's rather hard to know when you are joking, marzec, you should add more smiles or something.. you know, loads of different cultures mixed, a "thumbs up!" can mean "hey, it looks good" in some countries or "hey babe, lets f*ck".
Reply
#40
*thumbs up*
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)