Page 1 of 1

TSRs or hooks?

Posted: Fri 22 Dec, 2006 5:14 am
by LolBbq
I want to program a small piece of code that displays a sprite on the homescreen (or any other screen that doesn't use IM 1). I could also want it to move around. The thing is, I've been working with TSRs, but people have found it to be difficult to work with. They suggested hooks, but I don't know which hook could help with that purpose or how it could do so.

Posted: Fri 22 Dec, 2006 12:13 pm
by King Harold
If you want it to move all the time it might have to be a TSR, hooks are not called that often, only when something happens

Posted: Sun 24 Dec, 2006 5:02 pm
by LolBbq
I only want it to move when left/right are pressed, along with a few different actions by pressing other keys. But other than that, it should stay in one place without pressing keys.

Posted: Sun 24 Dec, 2006 5:39 pm
by King Harold
Then wouldn't a simple keyhook be enough?

Posted: Sun 24 Dec, 2006 6:07 pm
by LolBbq
A simple keyhook? How can I still have it run in the background while the TI-OS is running?

Posted: Sun 24 Dec, 2006 8:22 pm
by King Harold
You only want it to react when a key is pressed don't you?
when a key is pressed the keyhook is called..