06-28-2005, 01:47 AM
Can I use the built in FreeBasic Mouse functions when running my program in Pure DOS?
quote="Deleter"]judging gameplay, you can adaquately compare quake 4 with pong[/quote]
Mouse in DOS?
|
06-28-2005, 01:47 AM
Can I use the built in FreeBasic Mouse functions when running my program in Pure DOS?
quote="Deleter"]judging gameplay, you can adaquately compare quake 4 with pong[/quote]
06-28-2005, 02:02 AM
Only if you are in a graphics mode (set with SCREEN); that requires the gfxlib, which is not finished in the DOS port (and is only available from the CVS for now). If those conditions are met, it'll work just the same as in the Windows version of FreeBASIC.
06-28-2005, 02:12 AM
So at the moment I cannot do it?
quote="Deleter"]judging gameplay, you can adaquately compare quake 4 with pong[/quote]
06-28-2005, 02:43 AM
Actually you can - you just won't be using FB's commands. The easiest way I can think of would be to use inline assembly to get input from the mouse. I'm not really certain though how to do that in 32-bit. Under 16-bit, you'd simply tie into interrupt 33h. :wink:
06-28-2005, 03:19 AM
What will I be using then, if I'm not using FB's commands?
quote="Deleter"]judging gameplay, you can adaquately compare quake 4 with pong[/quote]
06-28-2005, 03:34 AM
Interrupts, just like you would in QB
974277320612072617420666C61696C21 (Hexadecimal for those who don't know)
06-28-2005, 03:59 AM
Hmm... Could I be pointed to a tut that explains these "Interupts"?
quote="Deleter"]judging gameplay, you can adaquately compare quake 4 with pong[/quote]
06-28-2005, 05:41 AM
Not exactly a tutorial (you should be able to find billions of them, everybody seems to think he has the greatest mouse routine ever ), but here's a simple bit of code:
Code: option explicit
06-28-2005, 07:02 AM
Quote:Not exactly a tutorial (you should be able to find billions of them, everybody seems to think he has the greatest mouse routine ever ), but here's a simple bit of code: Who are you refering to?[/b]
quote="Deleter"]judging gameplay, you can adaquately compare quake 4 with pong[/quote]
06-28-2005, 06:41 PM
Hey, kids! English lesson time! 'Everybody' is singular; therefore, I couldn't say "Everybody thinks they have ...", but instead must use "Everybody thinks he has...", where 'he' refers to 'everybody' In other words, everyone who writes a mouse handler thinks that the mouse handler he or she has written is uber-great etc.
Does that code help you do what you want? |
« Next Oldest | Next Newest »
|