5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-02 17:22:01 +08:00
wails/v3/pkg/events/events_darwin.go
2023-01-18 21:42:49 +11:00

27 lines
410 B
Go

//go:build darwin
package events
/*
#cgo CFLAGS: -x objective-c
#cgo LDFLAGS: -framework Cocoa -mmacosx-version-min=10.13
#include "events.h"
#include <stdlib.h>
#include <stdbool.h>
#include "events.h"
bool hasListener[MAX_EVENTS] = {false};
void registerListener(unsigned int event) {
hasListener[event] = true;
}
bool hasListeners(unsigned int event) {
return hasListener[event];
}
*/
import "C"