new miniplugin (mouse movement)

Completed plugins, behaviors and effects.

Post » Tue Aug 24, 2010 12:01 am

this is a plugin for detecting mouse movement, (not just changes in screen coordinates) through directinput
download
two expressions: x and y
the amount of pixels the mouse was moved in x and y respectively

this detects actual mouse movement, as opposed to actual screen coordinates, this means you don't need to hijack mouse control from the user, if you move the mouse to the edge of the screen it still detects mouse movement

also there is one action to make the cursor invisible
this is different than the regular make invisible that comes in mouse keyboard
this will make the cursor invisible even if it leaves the window in windowed mode
don't worry though, if the user alt tabs, or otherwise changes focus, the mou
se cursor will return
but it doesn't let the user accidentally lose focus by clicking outside the window

also, I think this plugin will be useful for having in game cursor speed control, because it uses the raw mouse data, which I believe is taken before it's processed by user set windows pointer speed settings(though I haven't tested this yet)lucid2013-02-13 01:44:07
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Tue Aug 24, 2010 12:52 am

Nice!

but why is it, EVERY time i write a tutorial for something it becomes obsolete by a custom plugin :P
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

Post » Tue Aug 24, 2010 2:48 am

Do not worry Quazi, it was an educational trip.

And cheers Lucid.

Is there any way to incorporate these sorts of plugins directly into Construct?
B
9
S
2
G
4
Posts: 346
Reputation: 2,726

Post » Tue Aug 24, 2010 6:01 pm

well, they're just as directly in construct as any other plugin
if you mean for this plugin to directly control behaviors with no extra events
I didn't add that feature because I'm waiting to see what davo does to fix the control system before I do that
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Mon Aug 30, 2010 9:23 am

This is perfect, just what I was after!
My Games on google play

ImageImage
B
30
S
6
G
4
Posts: 97
Reputation: 3,008

Post » Sat Jun 04, 2011 12:30 pm

Is there a way to "block" the mouse from going out of the game edges?

Eg. A custom mouse wouldn't be able to go through the edges of the game window, but would still get input if the actual mouse was out.
B
4
S
1
G
2
Posts: 75
Reputation: 1,000

Post » Sun Dec 09, 2012 7:00 am

Link broken, sadly. ;_;
B
45
S
9
G
7
Posts: 73
Reputation: 7,518

Post » Wed Feb 13, 2013 1:35 am

Is there any chance someone could post a new link for this plug-in? Thanks!
B
20
S
5
G
3
Posts: 65
Reputation: 3,764

Post » Wed Feb 13, 2013 1:46 am

Thanks Lucid!
B
20
S
5
G
3
Posts: 65
Reputation: 3,764

Post » Wed Feb 13, 2013 1:46 am

not maintaining this anymore, and don't have immediate access to the source code even if I had the time, but I updated the download mirror above for anyone who wants to use this despite the disclaimer

edit: whoa, how'd you do that?lucid2013-02-13 01:48:03
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Next

Return to Completed addons

Who is online

Users browsing this forum: No registered users and 0 guests