Beispiel #1
0
        public void InputCallback(string keyName)
        {
            Console.WriteLine("Input recieved!# Input " + keyName);
            //Console.WriteLine(Gimme() + "+ data");
            if (keyName == "Up")
            {
                SDLWrapper.AddDrawableLib(SDLWrapper.GliPath + "glbasis.gli", "CURSORL");
            }
            if (keyName == "Down")
            {
                Drawable.drawers[new Random().Next(0, Drawable.drawers.Count)].position.x += 2;
            }
            if (keyName == "Left")
            {
                Console.WriteLine("FPS: " + SDLWrapper.GetFPS());
            }
            if (keyName == "Right")
            {
                a = GFXLib.Create(SDLWrapper.GliPath + "glbasis.gli");

                Console.WriteLine(a.pointer);
            }
            if (keyName == "D")
            {
                Console.WriteLine(a.GetAllImageNames()[0]);
            }
        }
Beispiel #2
0
 public CallbackManager()
 {
     c = new Cursor(SDLWrapper.AddDrawableLib(SDLWrapper.GliPath + "glbasis.gli", "CURSOR"));
 }