Search found 15 matches

by davecotter
Sat Sep 21, 2013 12:25 pm
Forum: Developer's Forum for macOS
Topic: event timestamps
Replies: 3
Views: 68879

Re: event timestamps

yes, "messageT" in the above code is "ConnexionDeviceState.time"
by davecotter
Fri Apr 13, 2012 1:07 pm
Forum: Developer's Forum for macOS
Topic: Messages get queued
Replies: 10
Views: 124157

meanwhile, see this thread to learn how to discard the unwanted events

viewtopic.php?t=4973
by davecotter
Fri Apr 13, 2012 12:53 pm
Forum: Developer's Forum for macOS
Topic: Messages get queued
Replies: 10
Views: 124157

+1 for this request
by davecotter
Thu Apr 12, 2012 11:20 am
Forum: Developer's Forum for macOS
Topic: Interpreting timestamp value
Replies: 4
Views: 78966

see this thread for some actual code to answer this question:

viewtopic.php?t=3419
by davecotter
Thu Apr 12, 2012 11:17 am
Forum: Developer's Forum for macOS
Topic: How to flush events?
Replies: 13
Views: 151052

Note that the forums suggest you use "clock_get_uptime" or "mach_absolute_time", but the correct function is "UpTime()". #define kNanoSecondsPerSecond 1000000000 #define kMilliSecondsPerSecond 1000 #define kNanoSecondsPerMilli (kNanoSecondsPerSecond / kMilliSecondsPerSe...
by davecotter
Thu Apr 12, 2012 11:15 am
Forum: Developer's Forum for macOS
Topic: event timestamps
Replies: 3
Views: 68879

fyi that function answers the question: "did this event happen within the last 1/60th of a second?"
by davecotter
Thu Apr 12, 2012 11:14 am
Forum: Developer's Forum for macOS
Topic: event timestamps
Replies: 3
Views: 68879

The function "UpTime()" is the one you want. and yes, convert to nanoseconds for ease of comparison. in the following code, i then convert to milliseconds cuz the clocks really aren't that accurate anyway, and i do not need such precision. #define kNanoSecondsPerSecond 1000000000 #define k...
by davecotter
Mon Apr 09, 2012 2:51 pm
Forum: Developer's Forum for macOS
Topic: How to flush events?
Replies: 13
Views: 151052

apparently, see enhancement request 4503
by davecotter
Mon Apr 09, 2012 2:12 pm
Forum: Developer's Forum for macOS
Topic: How to flush events?
Replies: 13
Views: 151052

>> simple, cross platform command for your API that says "flush everything" > This isn't our API nor functionality. sorry if i wasn't clear. i was asking you to provide such functionality in both SDK's, not that i expected it to exist in the OS. > We did provide a solution for this on Wind...
by davecotter
Mon Apr 09, 2012 12:36 pm
Forum: Developer's Forum for macOS
Topic: How to flush events?
Replies: 13
Views: 151052

i was afraid you might say that. bummer. 1) if there is a precise definition of "too old" this might work, but it'd be far too easy to process events you don't need to, or actually miss the last event that you actually want. Due to the realtime nature of whatever calculation we're doing, e...
by davecotter
Mon Apr 09, 2012 10:11 am
Forum: Developer's Forum for macOS
Topic: How to flush events?
Replies: 13
Views: 151052

i sure hope you can get an answer for me today. as you say, lots of people would be happy to have this built in. but without the ability to say "only give me the most recent event", it's not going to work.
by davecotter
Fri Apr 06, 2012 4:47 pm
Forum: Developer's Forum for macOS
Topic: How to flush events?
Replies: 13
Views: 151052

There is no "ConnexionReadEvent()" API., and the type of NSEvent is not documented, so i do not see any way to flush them. I need this info to continue, i only have one more working day to show i completed it, else it will be abandoned.
by davecotter
Fri Apr 06, 2012 9:36 am
Forum: Developer's Forum for macOS
Topic: How to flush events?
Replies: 13
Views: 151052

we suggest is to eat all the events from the queue each time you find any events
Yes, but HOW?
by davecotter
Thu Apr 05, 2012 4:20 pm
Forum: Developer's Forum for macOS
Topic: How to flush events?
Replies: 13
Views: 151052

How to flush events?

If my operation takes an 8th of a second to complete, then by the end of the first event i've accumulated dozens of events in the que, which now must play out one at a time. To see this problem, open the 3DxValuesCarbon example, and change this line: line 149: from this: ---------------- TdxComputeA...
by davecotter
Tue Mar 11, 2008 10:37 pm
Forum: Feedback
Topic: Second Life support
Replies: 14
Views: 35623

??

yeah for the life of me i can't figure out how to make it go with my mac. so then i learn i have to get a "patched" version??

Where do i get that!??