Omnimaga

Calculator Community => TI Calculators => Axe => Topic started by: Happybobjr on February 04, 2011, 04:25:48 pm

Title: [help] Mouse in axe
Post by: Happybobjr on February 04, 2011, 04:25:48 pm
Is there anyway you can use a usb mouse in axe?
This would be done through usbdrv8x.
Would I have to make the game in basic and have alot of subprograms from axe to do this?
Sorry for not being clear.

I really want to make this game now...
http://www.eiswuxe.de/games/rocket-ninja-cyborg/
And it looks likeit would take less than an hour to make. (depending on how the mouse would have to be done.)
Title: Re: [help] Mouse in axe
Post by: jnesselr on February 04, 2011, 04:31:03 pm
You could essentially make the U_calls like b_calls from Axe with hex.

Look at http://brandonw.net/svn/calcstuff/blue8x/trunk/usb8x.inc at the very bottom at U_Call and U_call_init.
Title: Re: [help] Mouse in axe
Post by: Happybobjr on February 04, 2011, 04:37:07 pm
Sorry, but I don't know assembly.

All the tutorals i have seen require 32 bit computers or older
Title: Re: [help] Mouse in axe
Post by: DJ Omnimaga on February 04, 2011, 11:53:03 pm
Doesn't Spasm work under 64 bits? I think ZDS works in it too. However I do not know if there are any quick tutorial on how to use them.

You could ask Kerm on Cemetech, tho, if there are ways to get DCS mouse routine in an Axe program. I guess that would require DCS to be installed to run your program, though.
Title: Re: [help] Mouse in axe
Post by: Happybobjr on February 05, 2011, 09:44:37 am
I think i an just going to make a basic program.  call asm (axe) programs in it.  and also call Usbdrv8x in it.
That way dealing with x and y values will be easy.
after that, I will compile the asm subprograms and the basic program together with basic builder.
then if i want to do a different game. the GAME (basic part) will be done, so that would save time and space.
Title: Re: [help] Mouse in axe
Post by: souvik1997 on February 05, 2011, 10:20:38 am
You could look at the source for BrandonW's entry to Cemetech Contest #7, Jerry, which is a shell expansion for Doors CS to use USB mice. :)
http://brandonw.net/calcstuff/jerry.zip
Title: Re: [help] Mouse in axe
Post by: DJ Omnimaga on February 05, 2011, 02:10:28 pm
That could maybe work too, although I don't think he does ASM.

What is Usbdrvr? I think I heard about it before but I don't remember what it was and if it worked in ASM or BASIC.
Title: Re: [help] Mouse in axe
Post by: Deep Toaster on February 05, 2011, 02:12:15 pm
What is Usbdrvr? I think I heard about it before but I don't remember what it was and if it worked in ASM or BASIC.

I think that's usb8x, not sure though: http://tibasicdev.wikidot.com/openlib
Title: Re: [help] Mouse in axe
Post by: Happybobjr on February 05, 2011, 02:13:40 pm
it is usb8x 's  full name.


It is a library and can be called through
OpenLib(USBDRV8X)
{(command number)
ExecLib

Edit: Ninja'd
Title: Re: [help] Mouse in axe
Post by: JosJuice on February 05, 2011, 02:13:59 pm
What is Usbdrvr? I think I heard about it before but I don't remember what it was and if it worked in ASM or BASIC.
I think that's USB8x. It's named USBDRV8X in the calc app list.

EDIT: ninja'd again D:
Title: Re: [help] Mouse in axe
Post by: Happybobjr on February 05, 2011, 02:15:51 pm
wow 3 ninjas are here.
:P

I am just starting now.
I am going to code my mouse movements differently from the sample code though.  So i am going to do a small piece of code to see if it will be fast enough.
Title: Re: [help] Mouse in axe
Post by: DJ Omnimaga on February 05, 2011, 02:18:01 pm
Ok thanks for clarifying :D
Title: Re: [help] Mouse in axe
Post by: Deep Toaster on February 06, 2011, 12:10:28 am
Ok thanks for clarifying :D

Thrice, and glad I got the first one in :D

Anyway, back to the first question: There are always ways to do things in ASM, right? Is usb8x only for BASIC?
Title: Re: [help] Mouse in axe
Post by: DJ Omnimaga on February 06, 2011, 12:49:35 am
Nah, USB is mainly for ASM, I believe. I don't know about BASIC, though.
Title: Re: [help] Mouse in axe
Post by: JosJuice on February 06, 2011, 03:07:32 am
USB8x is mainly for asm, but it also supports TI-BASIC (using the OpenLib/ExecLib commands).
Title: Re: [help] Mouse in axe
Post by: DJ Omnimaga on February 06, 2011, 03:28:23 am
Ah ok, thanks for clarifying. I guess that's one of the few uses of the OpenLib/ExecLib commands, then. :P
Title: Re: [help] Mouse in axe
Post by: JosJuice on February 06, 2011, 03:29:22 am
Yeah. It's pretty much the only app that uses it, and that's because it wasn't compatible with the 83+(SE) anyway.
Title: Re: [help] Mouse in axe
Post by: Happybobjr on February 07, 2011, 03:54:13 pm
You could essentially make the U_calls like b_calls from Axe with hex.

Look at http://brandonw.net/svn/calcstuff/blue8x/trunk/usb8x.inc at the very bottom at U_Call and U_call_init.


could you give me a small example of how to do that?
It seems doing it in basic at all will be a real drag while coding this.