TSRs or hooks?

Got questions? Got answers? Go here for both.

Moderator: MaxCoderz Staff

Post Reply
LolBbq
New Member
Posts: 20
Joined: Thu 23 Nov, 2006 3:01 pm

TSRs or hooks?

Post 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.
King Harold
Calc King
Posts: 1513
Joined: Sat 05 Aug, 2006 7:22 am

Post 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
LolBbq
New Member
Posts: 20
Joined: Thu 23 Nov, 2006 3:01 pm

Post 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.
King Harold
Calc King
Posts: 1513
Joined: Sat 05 Aug, 2006 7:22 am

Post by King Harold »

Then wouldn't a simple keyhook be enough?
LolBbq
New Member
Posts: 20
Joined: Thu 23 Nov, 2006 3:01 pm

Post by LolBbq »

A simple keyhook? How can I still have it run in the background while the TI-OS is running?
King Harold
Calc King
Posts: 1513
Joined: Sat 05 Aug, 2006 7:22 am

Post 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..
Post Reply