Mousestate and modifiers problem in the tutorials
Hello there,
I need to do a project using max/msp/jitter and I started following the tutorials in order to learn it. Everything is going well and I am on the 10th max tutorial now, but the mousestate and modifiers object don't want to work. I follow the tutorial but nothing happens. no values at all. At first I thought that it might have something to do with the bluetooth mouse I use with my macbook pro, but by trackpad doesn't give any values either. So does the modifiers object.
Do you know what could be the problem? I have no clue...
Thanks!
Do you definitely have the [toggle] connected to the [metro] object turned on? Both [mousestate] and [modifiers] need to be polled, they will not send values automatically. Open the [mousestate] help file and see if it works there. If this isn't the cause of the problem then it's something more serious like mouse/keyboard recognition, but if it these are both working normally then max should recognise them.
lh
Yes, the toggle is on, I do everything correctly, but no values. I checked the help file as well... I don't know, but it should work, I mean it's the built in keyboard and the trackpad...
It is strange if it is a recognition problem because I get values from the key object so the keyboard is recognizes in that case.
It's just strange!
Do you have any ideas that could make it work?
I had another problem wile trying to view a help reference file nothing was showing up.
I restarted max and everything works fine now.
I hope I don't get any problems like that in the future. In this case I knew something else was wrong and not the patch because it was the tutorial, but if I was building one of my first patches it would be really confusing!
Anyway, thanks! Problem solved for the time being!
I have been having difficulty with mousestate too. It seems to require an intial bang to get going; I'm working on tutorial 08mKeyboardandMouseInput and while creating the patch recommended at the end of the tutorial I found that the mousestate was not sending an output when I clicked the mouse, even though the tutorial said that it would. I connected a button to the input and clicked on that. Now, even with that input button deleted, mousestate is happily outputting the 1/0 signals from the mouse.
Does anyone know why it seems to need to be 'woken up' like this? And is there a more elegant method?
You can send it the messages "poll" and "nopoll" to start and stop it. This way you don't have to send it repeated bangs. However it only updates when a change is detected rather than at the interval specified by your [metro]. It's all there in the helpfile and the reference manual, they should be your first port of call when you want to know how an object works.
lh
Are you sure you don't have any patch or subpatch with the name
mousestate in your search path?
Anastasia escreveu:
> I had another problem wile trying to view a help reference file nothing was showing up.
>
> I restarted max and everything works fine now.
>
> I hope I don't get any problems like that in the future. In this case I knew something else was wrong and not the patch because it was the tutorial, but if I was building one of my first patches it would be really confusing!
>
> Anyway, thanks! Problem solved for the time being!
>
>