Forums > MaxMSP

Can 'hi' recognise a HID complient mouse?

December 18, 2006 | 12:56 pm

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


December 18, 2006 | 3:06 pm

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?)


December 18, 2006 | 6:21 pm

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


December 18, 2006 | 6:50 pm

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


Viewing 4 posts - 1 through 4 (of 4 total)