package com.snowballs.game.inputProcessors;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input;
import com.badlogic.gdx.InputProcessor;
import com.snowballs.game.SnowBallsMain;

public class MainMenuInputProcessor implements InputProcessor {

    private SnowBallsMain game;
    //public float bg_width;
    //public float bg_height;

    public MainMenuInputProcessor(final SnowBallsMain core) {
        game = core;
    }

    @Override
    public boolean keyDown(int keycode) {
        return false;
    }

    @Override
    public boolean keyUp(int keycode) {
          switch (keycode) {
              case Input.Keys.BACK:
                  Gdx.app.exit();
          }
        return false;
    }

    @Override
    public boolean keyTyped(char character) {
        return false;
    }

    @Override
    public boolean touchDown(int screenX, int screenY, int pointer, int button) {
        //if (screenX >= 955 && screenX <= 1250 && screenY >= 270 && screenY <= 355 )
            //game.setScreen(new GameScreen(game));
        return false;
    }

    @Override
    public boolean touchUp(int screenX, int screenY, int pointer, int button) {
        return false;
    }

    @Override
    public boolean touchDragged(int screenX, int screenY, int pointer) {
        return false;
    }

    @Override
    public boolean mouseMoved(int screenX, int screenY) {
        return false;
    }

    @Override
    public boolean scrolled(int amount) {
        return false;
    }
}
