1. Neil.E and mouse...

are there any current mouse libraries that will work with Neil w/o any
modification?

I have tried to modify MIGHTY and RAT, and succeded in both, kinda,
they don't work in 15-bit+ modes.  I tried in MIGHTY to replace the #FF
in the map or mask, I don't know which, but i replaced that with
#FFFFFF, and that didn't work.  Any comments/ideas?  Pete?  Jiri?
David?  Rob?  Anybody else I didn't name?

Thanks,
Mike Hurley

===
::dozes off::
zzzzzzzzputerzzzzzzs kxhaaaaaaaaahshoooooooooooo comzzzzzp
_____________________________________________________________
Do You Yahoo!?
Free instant messaging and more at http://messenger.yahoo.com

new topic     » topic index » view message » categorize

2. Re: Neil.E and mouse...

>From: Mike Hurley

>are there any current mouse libraries that will work with Neil w/o any
>modification?

       I just pasted in the following mouse code from an earlier version of
Neil
(Just before the palette code) and it seemed to work fine when I was playing
with it.

-----------------------------------------------------------------
-- MOUSE STUFF --------------------------------------------------
-----------------------------------------------------------------
global constant RESET_MOUSE = -1
global integer mouse_x, mouse_y, mouse_b,
    mouse_minx, mouse_maxx, mouse_miny, mouse_maxy
global atom mouse_sprite
mouse_b = RESET_MOUSE

global procedure mouse()
--> Updates the global mouse variables:
-->   mouse_x, mouse_y, mouse_b
--> Set mouse_minx, mouse_maxx, mouse_miny, mouse_maxy, to limit the
-->   values of mouse_x and mouse_y.
--> Set mouse_sprite to a command handle for an automatic mouse cursor.
    sequence REGS
    integer i
    if mouse_b = RESET_MOUSE then
        REGS = repeat(0, 10)
        REGS = dos_interrupt(#33, REGS) -- reset mouse
        mouse_x = 0
        mouse_y = 0
        mouse_b = 0
        mouse_minx = 0
        mouse_miny = 0
        mouse_maxx = SCREEN_W - 1
        mouse_maxy = SCREEN_H - 1
        mouse_sprite = 0
    end if

    REGS = repeat(0, 10)
    REGS[REG_AX] = #B              -- get relative motion counters
    REGS = dos_interrupt(#33, REGS)
    i = REGS[REG_CX]
    if i then
        mouse_x = mouse_x + i - 2 * and_bits(i, #8000)
        if mouse_x < mouse_minx then mouse_x = mouse_minx
        elsif mouse_x > mouse_maxx then mouse_x = mouse_maxx end if
        if mouse_sprite then
            poke4(mouse_sprite + dest_x, mouse_x)
        end if
    end if

    i = REGS[REG_DX]
    if i then
        mouse_y = mouse_y + i - 2 * and_bits(i, #8000)
        if mouse_y < mouse_miny then mouse_y = mouse_miny
        elsif mouse_y > mouse_maxy then mouse_y = mouse_maxy end if
        if mouse_sprite then
            poke4(mouse_sprite + dest_y, mouse_y)
        end if
    end if

    REGS[REG_AX] = 3               -- get mouse buttons in BX
    REGS = dos_interrupt(#33, REGS)
    mouse_b = REGS[REG_BX]
end procedure

new topic     » goto parent     » topic index » view message » categorize

3. Re: Neil.E and mouse...

I've made a mouse library.  It currently works only for 640x480x256, but I
should easily be able to add in a few variables and change a few numbers.
I'll try to work on that as soon as possible.

--Gandrew

new topic     » goto parent     » topic index » view message » categorize

4. Re: Neil.E and mouse...

Neil has built-in support for mouse.
The mouse pointer has its own special command you can insert in the command
list. Lookup the documentation ,or maybe Pete can
tell the precize details.
I personally haven't tried it yet or worked with it at all.. but I am sure, the
support is there.

Ralf

new topic     » goto parent     » topic index » view message » categorize

5. Re: Neil.E and mouse...

Ralf wrote:

<color><param>7F00,0000,0000</param>> Neil has built-in support for mouse.

> The mouse pointer has its own special command you can insert in the command
> list.

</color>> Lookup the documentation ,or maybe Pete can
<color><param>7F00,0000,0000</param>tell the precize details.

> I personally haven't tried it yet or worked with it at all.. but I am sure,
> the support is there.


</color>Seems like it's gone. In the december version I found a

global procedure mouse() which updated the global mouse

variables mouse_x, mouse_y, and mouse_b, but in the latest

version I searched both neil.doc and neil.e file for the word

"mouse"  and didn't find nothing. (Slang. I'm Trying to be cool smile


Perhaps Pete removed it for some reason?



Best Regards,


Tor

<nofill>

new topic     » goto parent     » topic index » view message » categorize

6. Re: Neil.E and mouse...

I can still get my mouse library ready, but only in a few days.  It looks as
if there is a lot of other help, however, and my library is nothing near
standard.  It's just something I threw together for my own personal use.
But if it's still needed, just let me know.  Last day of school is
Wednesday, and then I'll have plenty of free time.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu