Glenn
2025-11-03 13:45:11 +00:00
parent 8c6120f414
commit b4d4cd47f5

View File

@@ -250,6 +250,35 @@ kVK :: enum {
ISO_Section = 0x0A,
}
/* class methods for creating events */
@(objc_type=Event, objc_name="otherEventWithType", objc_is_class_method=true)
Event_otherEventWithType :: proc "c" (
type: EventType,
location: Point,
flags: EventModifierFlags,
time: TimeInterval,
window_number: Integer,
ctx: id,
subtype: i16,
data1: Integer,
data2: Integer
) -> ^Event {
return msgSend(
^Event,
Event,
"otherEventWithType:location:modifierFlags:timestamp:windowNumber:context:subtype:data1:data2:",
type,
location,
flags,
time,
window_number,
ctx,
subtype,
data1,
data2
)
}
/* these messages are valid for all events */