2020-08-25 19:23:38 +00:00
|
|
|
/*
|
2021-01-26 03:03:26 +00:00
|
|
|
* Copyright (c) 2020-2021 ndeadly
|
2020-08-25 19:23:38 +00:00
|
|
|
*
|
2020-08-26 22:50:34 +00:00
|
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
|
|
* under the terms and conditions of the GNU General Public License,
|
|
|
|
* version 2, as published by the Free Software Foundation.
|
2020-08-25 19:23:38 +00:00
|
|
|
*
|
2020-08-26 22:50:34 +00:00
|
|
|
* This program is distributed in the hope 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 for
|
|
|
|
* more details.
|
2020-08-25 19:23:38 +00:00
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
2020-06-13 00:08:43 +00:00
|
|
|
#pragma once
|
|
|
|
#include <switch.h>
|
2020-07-01 13:34:07 +00:00
|
|
|
#include <stratosphere.hpp>
|
|
|
|
#include "bluetooth_types.hpp"
|
2020-06-13 00:08:43 +00:00
|
|
|
|
2020-06-13 17:15:59 +00:00
|
|
|
namespace ams::bluetooth::hid {
|
2020-06-13 00:08:43 +00:00
|
|
|
|
2020-06-14 22:18:46 +00:00
|
|
|
bool IsInitialized(void);
|
2021-02-21 18:35:19 +00:00
|
|
|
void SignalInitialized(void);
|
2021-02-20 23:43:56 +00:00
|
|
|
void WaitInitialized(void);
|
2020-06-13 17:15:59 +00:00
|
|
|
|
2021-02-21 01:42:06 +00:00
|
|
|
os::SystemEvent *GetSystemEvent(void);
|
|
|
|
os::SystemEvent *GetForwardEvent(void);
|
|
|
|
os::SystemEvent *GetUserForwardEvent(void);
|
2020-06-13 17:15:59 +00:00
|
|
|
|
2021-04-14 22:10:22 +00:00
|
|
|
void SignalFakeEvent(bluetooth::HidEventType type, const void *data, size_t size);
|
2021-02-21 16:36:24 +00:00
|
|
|
Result GetEventInfo(bluetooth::HidEventType *type, void *buffer, size_t size);
|
2020-06-14 22:18:46 +00:00
|
|
|
void HandleEvent(void);
|
2020-06-13 17:15:59 +00:00
|
|
|
|
|
|
|
}
|