git repos / blockattack-game

blame: source/code/HelpGamepadState.hpp

normal view · raw

54d2d583 sago007 2018-04-05 17:52 1
/*
54d2d583 sago007 2018-04-05 17:52 2
===========================================================================
54d2d583 sago007 2018-04-05 17:52 3
blockattack - Block Attack - Rise of the Blocks
54d2d583 sago007 2018-04-05 17:52 4
Copyright (C) 2005-2018 Poul Sander
54d2d583 sago007 2018-04-05 17:52 5
54d2d583 sago007 2018-04-05 17:52 6
This program is free software: you can redistribute it and/or modify
54d2d583 sago007 2018-04-05 17:52 7
it under the terms of the GNU General Public License as published by
54d2d583 sago007 2018-04-05 17:52 8
the Free Software Foundation, either version 2 of the License, or
54d2d583 sago007 2018-04-05 17:52 9
(at your option) any later version.
54d2d583 sago007 2018-04-05 17:52 10
54d2d583 sago007 2018-04-05 17:52 11
This program is distributed in the hope that it will be useful,
54d2d583 sago007 2018-04-05 17:52 12
but WITHOUT ANY WARRANTY; without even the implied warranty of
54d2d583 sago007 2018-04-05 17:52 13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
54d2d583 sago007 2018-04-05 17:52 14
GNU General Public License for more details.
54d2d583 sago007 2018-04-05 17:52 15
54d2d583 sago007 2018-04-05 17:52 16
You should have received a copy of the GNU General Public License
54d2d583 sago007 2018-04-05 17:52 17
along with this program.  If not, see http://www.gnu.org/licenses/
54d2d583 sago007 2018-04-05 17:52 18
54d2d583 sago007 2018-04-05 17:52 19
Source information and contacts persons can be found at
54d2d583 sago007 2018-04-05 17:52 20
https://blockattack.net
54d2d583 sago007 2018-04-05 17:52 21
===========================================================================
54d2d583 sago007 2018-04-05 17:52 22
*/
54d2d583 sago007 2018-04-05 17:52 23
54d2d583 sago007 2018-04-05 17:52 24
#ifndef HELPGAMEPADSTATE_HPP
54d2d583 sago007 2018-04-05 17:52 25
#define HELPGAMEPADSTATE_HPP
54d2d583 sago007 2018-04-05 17:52 26
ec3f09de Poul Sander 2022-01-29 14:33 27
#include "HelpCommon.hpp"
54d2d583 sago007 2018-04-05 17:52 28
#include "sago/SagoTextField.hpp"
54d2d583 sago007 2018-04-05 17:52 29
#include "sago/SagoTextBox.hpp"
54d2d583 sago007 2018-04-05 17:52 30
ec3f09de Poul Sander 2022-01-29 14:33 31
class HelpGamepadState  : public HelpCommonState {
54d2d583 sago007 2018-04-05 17:52 32
public:
54d2d583 sago007 2018-04-05 17:52 33
	HelpGamepadState();
54d2d583 sago007 2018-04-05 17:52 34
	HelpGamepadState(const HelpGamepadState& orig) = delete;
54d2d583 sago007 2018-04-05 17:52 35
	virtual ~HelpGamepadState();
54d2d583 sago007 2018-04-05 17:52 36
	void Draw(SDL_Renderer* target) override;
54d2d583 sago007 2018-04-05 17:52 37
	void ProcessInput(const SDL_Event& event, bool &processed) override;
54d2d583 sago007 2018-04-05 17:52 38
private:
54d2d583 sago007 2018-04-05 17:52 39
	bool isActive = true;
bf4572f8 sago007 2018-04-10 22:25 40
	bool bMouseUp = true;
492b2753 sago007 2018-04-07 14:37 41
	sago::SagoTextField moveLabel;
492b2753 sago007 2018-04-07 14:37 42
	sago::SagoTextField pushLabel;
79d765a2 sago007 2018-04-07 17:35 43
	sago::SagoTextField backLabel;
79d765a2 sago007 2018-04-07 17:35 44
	sago::SagoTextField switchLabel;
79d765a2 sago007 2018-04-07 17:35 45
	sago::SagoTextField confirmLabel;
bf4572f8 sago007 2018-04-10 22:25 46
	sago::SagoTextBox supportedControllers;
54d2d583 sago007 2018-04-05 17:52 47
};
54d2d583 sago007 2018-04-05 17:52 48
54d2d583 sago007 2018-04-05 17:52 49
#endif /* HELPGAMEPADSTATE_HPP */
54d2d583 sago007 2018-04-05 17:52 50
1970-01-01 00:00 51