Can 'hi' recognise a HID complient mouse?

Dec 18, 2006 at 12:56pm

Can 'hi' recognise a HID complient mouse?

Hi,

Ive been trying to get max/msp to recognise my HID complient mouse. Ive been using mousestate to receive x and y coordinates but i need more inputs, my mouse has five buttons so is there an object that can recognise these? Ive also tried assigning the buttons to keystrokes and reading them in using ‘key’ which seems to work to a certain extent but im wondering if there is an easier way to do this using ‘hi’ or ‘serial’ for example?

any suggestions would be appreciated

#29279
Dec 18, 2006 at 3:06pm

On 18 Dec 2006, at 12:56, Andrew Walker-Hall wrote:

> but im wondering if there is an easier way to do this using ‘hi’ or
> ‘serial’ for example?

Trying it with the help patcher for [hi] would probably have been
quicker than sending the email message.

But yes, if it’s HID-compliant, then it should work.

(Certainly on a Mac – you are on a Mac, right?)

#91076
Dec 18, 2006 at 6:21pm

Thanks for the reply. No im using a PC, ive been playing with the ‘hi’ help file but with little success. It recognises my sony ps2 controller but not the mouse which is supposedly HID complient. From what you said, im assuming the the ‘hi’ object behaves differntly on different platforms? Do you know of any compatabiliy issues with the ‘hi’ object?

Cheers

#91077
Dec 18, 2006 at 6:50pm

Andrew Walker-Hall wrote:

> Thanks for the reply. No im using a PC, ive been playing with the ‘hi’ help file but with little success. It recognises my sony ps2 controller but not the mouse which is supposedly HID complient. From what you said, im assuming the the ‘hi’ object behaves differntly on different platforms? Do you know of any compatabiliy issues with the ‘hi’ object?

Microsoft says:

“Note that “HID_DEVICE_SYSTEM_MOUSE” and “HID_DEVICE_SYSTEM_KEYBOARD”
are opened by the operating system listed above in exclusive mode, while
all other collections are opened as shared or raw. This is to ensure
that keyboard and mouse (pen) input are treated as secure input.”
(taken from http://www.microsoft.com/whdc/device/input/HID_HWID.mspx)

This explains why you can’t access mouse or keyboard in Windows using
the hi object.

Olaf

#91078

You must be logged in to reply to this topic.