Jump to content
IGNORED

[Lepix] Eru is still looking for a mouse support


twh/f2

Recommended Posts

Friends,

 

maybe you heard about the quite promising product called "Lepix". When it was announced in May05 I was excited to see such a great new pixel painter with some very unique and never seen features on the 8bit (modules, great zoom mode, flexibility on graphic modes, etc.). Lepix is also one of the few 8bit open sourced products which is registered at SourceForge:

 

http://lepix.sourceforge.net/

 

http://sourceforge.net/projects/lepix/

 

However, Lepix got no updates for several weeks now. Also one featue which is still missing but in my humble opinion VERY important is an ATARI ST or Amiga mouse support. In the FAQ of the project, Eru wrote that he had various difficulties in implementing this.

 

I know, that there were quite a lot of Atari ST and Amiga mouse implementations for the xl/xe. Maybe we can help out Eru if we can provide him examples and different implementations or just discuss this topic here. Furthermore this eventually brings up some fresh ideas into this project. Eru also should know that there is a user base which is interested to see a finished project here.

 

\twh

Link to comment
Share on other sites

Thanks for the nice words about the project!

It is a bit dead recently, since I had a very hard time at my work...

 

About the mouse:

Unfortunatelly, the solution presented at Heaven's website just doesn't work.

The problem is, the mouse resolution is 4-bit only, meaning it can only have 16 positions in each dimension. Probing each frame is not enough, as fast mouse movements are impossible to detect. And probing more than once a frame is a bit hard in Lepix, as it uses plenty of interrupts. I will try to do something about it eventually, but it's not an easy task (if we want it to be available in all the modes).

 

In the meantime, you can admire new gfx mode available in lepicon :)

Link to comment
Share on other sites

Thanks for the nice words about the project!

It is a bit dead recently, since I had a very hard time at my work...

 

About the mouse:

Unfortunatelly, the solution presented at Heaven's website just doesn't work.

The problem is, the mouse resolution is 4-bit only, meaning it can only have 16 positions in each dimension. Probing each frame is not enough, as fast mouse movements are impossible to detect. And probing more than once a frame is a bit hard in Lepix, as it uses plenty of interrupts. I will try to do something about it eventually, but it's not an easy task (if we want it to be available in all the modes).

 

In the meantime, you can admire new gfx mode available in lepicon :)

921431[/snapback]

 

How about an USB Mouse. The USB Mouse resolution is very fine (down to the pixel).

 

Sample Source is here

http://www.strotmann.de/twiki/bin/view/Mic...BCartAtariMouse

 

Best regards

 

Carsten

Edited by cas
Link to comment
Share on other sites

I didn't know USB mice could be used with atari ;)

(btw, is plural of mouse 'mice' also for computer mouses/mices? :) )

 

a mouse with e.g. 8-bit precision should be fast enough except for very fast moves, if you can poll it every frame.

 

I wonder if there is any atari emulator that would emulate usb support, without it I'm not able to play with it.

 

In the meantime I will try to incorporate mouse checks a bit more often in the Lepix, so the accuracy should be improved.

 

In principle, I have to apologize for not maintaining Lepix - since the beginning of this year I'm constantly either having a deadline or travelling around the world, so I didn't have time and energy to do anything. Still, any feedback really motivates me, so I will try to do my best.

Link to comment
Share on other sites

Well,

how about a mouse-driver that acts in a VBI ?!? Afaik, Frankenstein (of the Mega Magazine) wrote such a driver. I have it at home, as well as dozens of other mouse-drivers. I Can attach a copy of my mouse-utility disk here next week... greetings, Andreas Magenheimer.

Link to comment
Share on other sites

It's really hard to believe polling a mouse 50x a second with a 4-bit resolution would work. So we either need a better resolution (USB mouse) or a higher frequency.

923046[/snapback]

 

Some things will never work on the A8, or don't even make sense.

I would propose to create some small interface that adapts the mouse-signal into Joystick positions.

Or....

Building extensions within the USB Cartidge that converts a detected Mouse-info into "per software readable" values, like Direction, Speed, Stepwidth.

Those could be read in standard VBI.

 

BTW: USB-Cart.

With DMA-capabilites for external Drives, I would be the first buying it :ponder:

Link to comment
Share on other sites

Building extensions within the USB Cartidge that converts a detected Mouse-info into "per software readable" values, like Direction, Speed, Stepwidth.

Those could be read in standard VBI.

 

USB mice are sending back the x/y replacement in pixel. There is no need to poll. Just ask rthe USB mouse about the x/y replacement, add this to your x/y coordinates and move player or shape.

 

ERU, I can lent you an USB Cart for development. Send me your address on private e-mail.

 

Best regards

 

Carsten

Link to comment
Share on other sites

Carsten, thanks for your offer.

However, I just started my 3-months trip to the USA, I don't have access to an Atari, so I guess USB mouse will have to be postponed until next year. Still, I hope to find some time here to do some development, we shall see.

Link to comment
Share on other sites

Carsten, thanks for your offer.

However, I just started my 3-months trip to the USA, I don't have access to an Atari, so I guess USB mouse will have to be postponed until next year. Still, I hope to find some time here to do some development, we shall see.

930869[/snapback]

 

hey this is an open source project. It's not necessarily your part to make this work :) .. What Cas wrote sounds not so complex if you ask me. It's more or less to read out some values and the move the pointer. But I am no experienced machine language coder so maybe I can't see the whole complexity.

 

Cas maybe we can do this together? Unfortunately I have no time for the Unconventional this year, this would have been a good time slot for this. However, I still don't own a USB cartdridge and this seems to be the best motivation to finally buy one. (at least to me). Once I have one, I could start coding and playing around with that thing.

 

\twh

Link to comment
Share on other sites

  • 1 month later...

This is awesome!! I just tried to attach a modern pc mouse to my 130XE. Indeed the usb driver by Abbuc/RAF works like a charm with any usb mouse!! Fast, ultra precise and that wonderfull feeling!! This is like a new shiny luxury wheel attached to an oldtimer.

 

http://www.microusb.org/

https://sourceforge.net/project/showfiles.p...group_id=111428

 

Friends, go and buy your atari USB cart and start programming applications for it! I hope we can integrate the driver into Lepix. Then we would have the first real world's application (beside some games) for the USB cart.

 

\twh

Link to comment
Share on other sites

Hi,

 

I looked at the Lepix sourcecode. It should not a big problem to integrate the USB Mouse Driver. I will discuss this with twh/F2 next Saturday at ABBUC JHV.

 

For me the biggest problem would be to work with the assembler used for LePix, as it seems to be written in Delphi and Windows only, and I only run Linux and MacOS X.

 

Does anyone know if there is a port of the MADS assembler for Linux/MacOS X?

 

Ciao

 

Carsten

Link to comment
Share on other sites

Does anyone know if there is a port of the MADS assembler for Linux/MacOS X?

Look no further:

http://homepages.cwi.nl/~marcin/a8/mads

 

[23:16:15 eru@aeris] ~/utils/mads/src 
$ uname -a
Darwin aeris.local 8.2.1 Darwin Kernel Version 8.2.1: Fri Jun 24 23:31:10 PDT 2005; root:xnu-792.3.2.obj~1/RELEASE_PPC Power Macintosh powerpc
[23:16:17 eru@aeris] ~/utils/mads/src 
$ ./mads
mads 1.6.5
Syntax: MADS source [options]
/3              Pass=3 (default 4)
/c              Label case sensitivity
/e              Eat white spaces
/h[:filename]   Header file for CC65
/i:path         Additional include directories
/l[:filename]   Generate listing
/m:filename     File with macro definition
/o:filename     Set object file name
/p              Print fully qualified file names in listing
/s              Silent mode
/t[:filename]   List label table

 

However, I'm not able to compile Lepix with it, I wrote Tebe, maybe we will manage to fix it.

 

To compile MADS for Linux or MacOSX, simply download MADS sources, and change asembler.dpr, so each file-related occurence of '\' becomes PathDelim. And add

uses SysUtils;

after

program MADS;

Then, you should be able to compile it with fpc (Free Pascal Compiler) by running

fpc -Mdelphi -omads asembler.dpr

and you're done.

 

cheers,

eru

Edited by eru
Link to comment
Share on other sites

Does anyone know if there is a port of the MADS assembler for Linux/MacOS X?

Look no further:

http://homepages.cwi.nl/~marcin/a8/mads

 

 

 

Ahhh, cool, a MacOS X Version. Thank you very much.

 

Thomas (twh/f2) has already started integrating the USB Mouse driver into the LePix Source.

 

So far it seems to be pretty straightforward, as the LePix sourcecode is well organized.

 

I will support him with this over the next week. Hopefully we see USB Mouse-Support in Mid-November.

 

 

Best regards

 

Carsten

Edited by cas
Link to comment
Share on other sites

Quick info - it seems that the MADS I provided might be buggy due to some pascal compiler incompatibilities.

We're working on this with Tebe, if you notice any strange behavior, please don't panic and just let us know :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...