Welcome, Guest. Please login or register.

Author Topic: NEWMOUSE standard  (Read 2817 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline xeronTopic starter

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 2533
    • Show only replies by xeron
    • http://www.petergordon.org.uk
NEWMOUSE standard
« on: July 02, 2007, 02:39:47 PM »
BuZz is trying to fix a problem with mousewheel support in the OS3.x build of HivelyTracker, without actually having a wheelmouse. (On OS4, I use the OS4 mousewheel API and on OS3 BuZz uses the newmouse standard.)

It seems that the newmouse stuff sends both a mousewheel up/down event as well as a cursor up/down event. Is there any way to filter out cursor up/down rawkey events generated by the newmouse driver?
Playstation Network ID: xeron6
 

Offline Gilloo

  • Full Member
  • ***
  • Join Date: Apr 2006
  • Posts: 124
    • Show only replies by Gilloo
Re: NEWMOUSE standard
« Reply #1 on: July 02, 2007, 03:24:36 PM »
Hello

Effectively, mousewheel events are translated in RAWKEY (very strange for a mouse!)

here my include name and constant I use for my ANAIIS stack... (the usb stack for very limited old classic amigas)

#define WHEEL_UP    0x7a
#define WHEEL_DOWN  0x7b
#define WHEEL_LEFT  0x7c
#define WHEEL_RIGHT 0x7d

On OS4.0 it is different, there are IECLASS_MOUSEWHEEL events, but I don't develop under os4... it's another story
 :-D
 

Offline Thomas

Re: NEWMOUSE standard
« Reply #2 on: July 02, 2007, 10:31:09 PM »
Quote
It seems that the newmouse stuff sends both a mousewheel up/down event as well as a cursor up/down event.


NewMouse does not send cursor key events, FreeWheel does this. Deactivate FreeWheel and try again.

Bye,
Thomas

Offline kas1e

Re: NEWMOUSE standard
« Reply #3 on: October 08, 2007, 08:35:27 AM »
Can some one explaint for me: i have ps/2 mouse, download NewMouse12.lha from aminet, and found these strings:

 Q: Can i use a PS/2 mouse with NewMouse?
 A: No, you can't. You need a real RS232 mouse.

But some of developers support only this one standart, it mean that it possible somehow to use ps/2 mouse with it somehow or not ?
 

Offline Thomas

Re: NEWMOUSE standard
« Reply #4 on: October 08, 2007, 09:00:11 AM »

The NewMouse program is a driver for serial mice. It cannot be used with PS/2 devices.

But it also invented a set of rawkey codes used to feed wheel movements into input.device. These codes are called "the NewMouse standard". The codes, not the program.

Programs supporting the NewMouse standard rely on the rawkey codes, not on the NewMouse program. Most drivers for PS/2 mice (e.g. Cocolino, Topolino, EZMouse etc.) feed exactly the same rawkey codes into input.device for wheel movements. This way programs supporting NewMouse automatically support Cocolino etc., too.

Bye,
Thomas

Offline kas1e

Re: NEWMOUSE standard
« Reply #5 on: October 08, 2007, 10:53:35 AM »
Cool. Then if i use in my programm newmouse.h, it will works for every mouse on any amiga, right ?