mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-02 17:22:01 +08:00
27 lines
410 B
Go
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"
|