mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-19 04:50:29 +00:00
Add Event_otherEventWithType
https://developer.apple.com/documentation/appkit/nsevent/otherevent(with:location:modifierflags:timestamp:windownumber:context:subtype:data1:data2:)
This commit is contained in:
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user