mirror of
https://github.com/SourMesen/Mesen2.git
synced 2024-06-05 06:29:30 -04:00
26 lines
581 B
C++
26 lines
581 B
C++
#pragma once
|
|
#include "pch.h"
|
|
#include "Core/Shared/Interfaces/INotificationListener.h"
|
|
#include "Core/Shared/NotificationManager.h"
|
|
|
|
typedef void(__stdcall *NotificationListenerCallback)(int, void*);
|
|
|
|
class InteropNotificationListener : public INotificationListener
|
|
{
|
|
NotificationListenerCallback _callback;
|
|
|
|
public:
|
|
InteropNotificationListener(NotificationListenerCallback callback)
|
|
{
|
|
_callback = callback;
|
|
}
|
|
|
|
virtual ~InteropNotificationListener()
|
|
{
|
|
}
|
|
|
|
void ProcessNotification(ConsoleNotificationType type, void* parameter)
|
|
{
|
|
_callback((int)type, parameter);
|
|
}
|
|
}; |