Thanks to you, Jared
?
I also found out, searching the Internet, that C# SDL (or SDL.NET) is not supported at all !!! … and as one of you told me, the forum or chat of C# SDL Main page is not alive
?
Well, fortunately, I also know C (plain C, not C++) … I used the DJGPP(C/C++ for DOS) for a time, but it s no longer suported in any actual machine
Here you said you use C now, so, if I shift to C I won t have problems? What C Development Environment (or Compiler, or SDK) should I use? There is a Visual C/C++ for .NET? (because I m used to Visual Studio s nice Editor) … Where can I get SDL for C?
Thank you
About my game, now I m writting a new version, … now it s much better, nothing to do with the first version
I returned to using the Events class loop, and it worked again, but I still want to be able to use Threads and ignore that Events loop, … that is, to handle my own loops, like this
for ( ; ; )
{
??? ReadKbrd();
??? DrawGame();
}
Asesinar y comer un perro o un gato es lo mismo q hacerlo a una vaca, un pollo, un cerdo o un pez. El genocidio no discrimina. No seas complice de genocidas. No seas genocida. En la vida tarde o temprano todo vuelve. No comas cadaveres. No seas necr?fago.De: Jared Maddox
Para: sdl at lists.libsdl.org
Enviado: jueves, 23 de agosto de 2012 0:49
Asunto: Re: [SDL] someone who uses C# SDL please - Re: important SDL BUG : Keyboard and Mouse classes dont work : Please HELP!!!
Date: Tue, 21 Aug 2012 15:58:57 -0700 (PDT)
From: Pablo Marty <@Pablo_Marty>
To: “sdl at lists.libsdl.org”
Subject: [SDL] important SDL BUG : Keyboard and Mouse classes dont
??? work :??? Please HELP!!!
Message-ID:
??? <1345589937.35683.YahooMailNeo at web124903.mail.ne1.yahoo.com>
Content-Type: text/plain; charset=“iso-8859-1”
Can you confirm this and tell me how to solve it? It seems there are not too
many list members that use C# with SDL, but I supposse and hope that someone
is able to terminate with this problem … my Mario game really was getting
very nice
?
Thank you very much
?
Pablo
I was looking through the mailing-list archives recently, and it looks
like you’ve been postoing on this game for a while. Always nice to see
some activity, so thanks.
Date: Tue, 21 Aug 2012 23:17:21 -0700 (PDT)
From: Pablo Marty <@Pablo_Marty>
To: Christian Leger <chrism.leger at gmail.com>,??? SDL Development List
???
Subject: [SDL] someone who uses C# SDL please - Re: important SDL BUG
??? :??? Keyboard and Mouse classes dont work : Please HELP!!!
Message-ID:
??? <1345616241.57956.YahooMailNeo at web124904.mail.ne1.yahoo.com>
Content-Type: text/plain; charset=“iso-8859-1”
I wonder, is C#SDL library (I mean the binarys, the DLLs) the same than the
C/C++ library, or the VB one, or others. I really doubt if this could be an
SDL bug. Perhaps the SDL library for C/C++ hasn t this problem, and the C#'s
one does …
?
As a matter of fact, no, SDL# (or whatever it’s proper name is) isn’t
actually part of the SDL project. That, I suspect, is why you’re
finding little help (and finding problems). It’s certainly why I
haven’ been posting on this, since I don’t even use C# (lately I’ve
even been shifting to plain C!).
Could someone who uses C# (and SdlDotNet or C#SDL) tell me what to do with
this? I would thank you very much
I’m afraid that for real help you’ll probably need to try the SDL#
project’s own resources, though whether there’s any activity there I
don’t know.
Pablo
Date: Wed, 22 Aug 2012 12:23:23 -0400
From: “Ryan C. Gordon”
To: SDL Development List
Subject: Re: [SDL] someone who uses C# SDL please - Re: important SDL
??? BUG : Keyboard and Mouse classes dont work : Please HELP!!!
Message-ID: <5035077B.9040002 at icculus.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Having not used C#, I can’t say for certain, but if you had written this
in C, you would need to tell SDL to run it’s event queue, otherwise it
won’t ever notice mouse or keyboard input (and thus, always tell you
that the mouse button isn’t pressed).
A quick Googling says there’s something like Event.Run() you should call
somewhere. You’ll have to look into it further, but something like that
should make IsButtonPressed() work correctly.
Example code: http://swinbrain.ict.swin.edu.au/wiki/Sdl_Dot_Net_Tutorial
–ryan.
He’s specifically said that he’s avoiding using the Event class so
that he can use multithreading, though some sort of marshalling system
might work. Unfortunately, such a system would probably be somewhat
redundant as well, since SDL# presumably has one of it’s own.
Date: Wed, 22 Aug 2012 13:58:31 -0400
From: Christian Leger <chrism.leger at gmail.com>
To: SDL Development List
Subject: Re: [SDL] someone who uses C# SDL please - Re: important SDL
??? BUG : Keyboard and Mouse classes dont work : Please HELP!!!
Message-ID:
??? <CAHgimD9=k+QpseCHr-OVVK1MiyD6v7fnNt_2dhnNG3EVjz+gBA at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
Hi,
If you are still having difficulties, I suggest you get your hands on
a demo that uses SDL in C#, because I would be surprised if that
doesn’t work out of the box. Then you can carefully compare your event
processing code to the code in the demo, and I think there is a good
chance you will make progress with that.
I suspect that he already has. He’s been posting off-and-on about
various problems that he’s needed help with, this is just the most
recent one (and presumably an attempt to make the game faster). I
strongly suspect that he’s simply outgrown the constraints of the demo
code.
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org