mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-04 08:31:47 +08:00
26 lines
412 B
Go
26 lines
412 B
Go
//go:build darwin
|
|
|
|
package events
|
|
|
|
/*
|
|
#cgo CFLAGS: -x objective-c
|
|
#cgo LDFLAGS: -framework Cocoa -mmacosx-version-min=10.13
|
|
|
|
#include "events_darwin.h"
|
|
#include <stdlib.h>
|
|
#include <stdbool.h>
|
|
|
|
bool hasListener[MAX_EVENTS] = {false};
|
|
|
|
void registerListener(unsigned int event) {
|
|
hasListener[event] = true;
|
|
}
|
|
|
|
bool hasListeners(unsigned int event) {
|
|
//return hasListener[event];
|
|
return true;
|
|
}
|
|
|
|
*/
|
|
import "C"
|