2014-03-24 05:18:54 +00:00
|
|
|
// Copyright (c) 2014- PPSSPP Project.
|
|
|
|
|
|
|
|
// This program is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, version 2.0 or later versions.
|
|
|
|
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License 2.0 for more details.
|
|
|
|
|
|
|
|
// A copy of the GPL 2.0 should have been included with the program.
|
|
|
|
// If not, see http://www.gnu.org/licenses/
|
|
|
|
|
|
|
|
// Official git repository and contact information can be found at
|
|
|
|
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
|
|
|
|
|
2013-03-30 22:32:34 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <list>
|
|
|
|
#include <memory>
|
|
|
|
|
2014-03-24 05:18:54 +00:00
|
|
|
#include "Common/CommonTypes.h"
|
2012-11-12 15:38:21 +00:00
|
|
|
|
2014-03-24 05:18:54 +00:00
|
|
|
class InputDevice {
|
2012-11-12 15:38:21 +00:00
|
|
|
public:
|
2021-02-14 18:15:51 +00:00
|
|
|
virtual ~InputDevice() {
|
|
|
|
}
|
|
|
|
|
2013-04-08 01:41:26 +00:00
|
|
|
enum { UPDATESTATE_SKIP_PAD = 0x1234};
|
2017-03-15 05:01:18 +00:00
|
|
|
virtual int UpdateState() = 0;
|
2014-03-24 05:18:54 +00:00
|
|
|
|
|
|
|
static void BeginPolling();
|
|
|
|
static void StopPolling();
|
2015-02-28 22:02:03 +00:00
|
|
|
|
|
|
|
static void GainFocus();
|
|
|
|
static void LoseFocus();
|
2012-11-12 15:38:21 +00:00
|
|
|
};
|