Quick Links:
Download Gideros Studio
|
Gideros Documentation
|
Gideros community chat
|
DONATE
there is "wait for event"? — Gideros Forum
Home
Discussions
Sign In
Home
›
Game & application design
Sign In
·
Register
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
Quick Links
Categories
Recent Discussions
Categories
7.8K
All Categories
11
Help with translations
4.2K
General questions
107
Roadmap
358
Game & application design
316
Plugins
70
User experience
75
Marketplace
291
Code snippets
34
Building a team?
269
Suggestions & requests
352
Announce your apps made with Gideros.
90
Step by step tutorials
668
Bugs and issues
195
Introduce yourself
239
Announcements
106
Forum talk
404
Relax cafe
In this Discussion
January 2016
ar2rsawseen
January 2016
totebo
January 2016
pie
Top Posters
ar2rsawseen
6991
SinisterSoft
4058
hgy29
3649
keszegh
3257
atilim
2892
antix
2136
MoKaLux
2015
OZApps
1983
totebo
1781
oleg
1706
hgvyas123
1412
techdojo
1321
pie
1194
gorkem
1186
rrraptor
1030
phongtt
1029
Mells
1024
MikeHart
1020
john26
995
GregBUG
962
there is "wait for event"?
Unknown
Member
January 2016
edited January 2016
in
Game & application design
Hi,
i need a blocking/synchronous way to "wait for event".
(that will avoid many resource usage, at my app)
how to accomplish this at Gideros?
(for instance, SDL has SDL_WaitEvent)
+1
-1
Share on Facebook
Comments
pie
Member
January 2016
Hi,
I don't know SDL, this may be a different approach: take a look to EventDispatcher
http://docs.giderosmobile.com/reference/gideros/EventDispatcher/addEventListener
and
http://docs.giderosmobile.com/reference/gideros/Event#Event
You can "listen" for a set of predefined events (enter frame, key down...) or create your custom events.
When the event occurs a function of your choice is triggered.
+1
-1
Share on Facebook
totebo
Member
January 2016
+1 for events
My Gideros games:
www.totebo.com
+1
-1
Share on Facebook
ar2rsawseen
Maintainer
January 2016
@fecik
Gideros is single threaded so there is not block thread stuff.
You can achieve some paralelism through coroutines and yield operation on coroutine, etc. But that is probably not what you want.
http://appcodingeasy.com/Gideros-Mobile
+1
-1
Share on Facebook
Sign In
or
Register
to comment.
Powered by Vanilla
Comments
I don't know SDL, this may be a different approach: take a look to EventDispatcher
http://docs.giderosmobile.com/reference/gideros/EventDispatcher/addEventListener
and
http://docs.giderosmobile.com/reference/gideros/Event#Event
You can "listen" for a set of predefined events (enter frame, key down...) or create your custom events.
When the event occurs a function of your choice is triggered.
You can achieve some paralelism through coroutines and yield operation on coroutine, etc. But that is probably not what you want.