mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-06-08 03:58:43 +02:00
c37f350c02
Skyline has been licensed with GPLv3 but as we want to look into optional ads in the future, and that would require linking AdMob SDKs which are proprietary. So, we decided to move to LGPLv3 so we could keep that option open as a revenue stream. We've gathered consent from all contributors for the license change: * PixelyIon - https://github.com/PixelyIon (Commit Author) * Zephyren25 - https://github.com/zephyren25 * ByLaws - https://github.com/bylaws * IvarWithoutBones - https://github.com/IvarWithoutBones * Cyuubi - https://github.com/Cyuubi * greggamesplayer - https://github.com/greggameplayer
27 lines
735 B
C++
27 lines
735 B
C++
// SPDX-License-Identifier: LGPL-3.0-or-later
|
|
// Copyright © 2020 Skyline Team and Contributors (https://github.com/skyline-emu/)
|
|
|
|
#pragma once
|
|
|
|
#include "KSyncObject.h"
|
|
|
|
namespace skyline::kernel::type {
|
|
/**
|
|
* @brief KEvent is an object that's signalled on an repeatable event occurring (https://switchbrew.org/wiki/Kernel_objects#KEvent)
|
|
*/
|
|
class KEvent : public KSyncObject {
|
|
public:
|
|
/**
|
|
* @param state The state of the device
|
|
*/
|
|
KEvent(const DeviceState &state) : KSyncObject(state, KType::KEvent) {}
|
|
|
|
/**
|
|
* @brief Resets the KEvent to an unsignalled state
|
|
*/
|
|
inline void ResetSignal() {
|
|
signalled = false;
|
|
}
|
|
};
|
|
}
|