[SUGGESTION] Gaming mouses

Discussion and feedback on Construct 2

Post » Sun Nov 13, 2016 6:25 am

Can you add support for Gaming Mouses? Gaming mouses have more buttons! e.g. two side buttons, thumb wheel, etc.. Search Gaming Mouses on Amazon! ;)
I'm not the best, but i like making games in Construct
B
23
S
7
G
1
Posts: 35
Reputation: 2,222

Post » Sun Nov 13, 2016 6:55 am

what do you mean, support for gaming mouses? the mouse plugin already has a input detection for all mouses no matter if has the default 3 buttons or 10 :)
B
78
S
23
G
69
Posts: 1,353
Reputation: 44,005

Post » Sun Nov 13, 2016 7:39 am

gamecorpstudio wrote:what do you mean, support for gaming mouses? the mouse plugin already has a input detection for all mouses no matter if has the default 3 buttons or 10 :)
Don't think so. (I checked, no support for gaming mouses, only support for normal mouses)
I'm not the best, but i like making games in Construct
B
23
S
7
G
1
Posts: 35
Reputation: 2,222

Post » Sun Nov 13, 2016 7:43 am

oh i think i got confused with the touch input detection, i think touch should work for custom buttons(but im not entirely certain i remember that has a detect input at index 0,1,2,3,4,5,6 etc which detects the buttons on mouse or multi touch screen but again not sure if applies to mouse or only to touch), but yea, multiple mouse buttons should be supported, nice request +1.


Edited:

however i have a gaming mouse, but the extra side buttons, are by default for browser forward/backwards, unless i map them in the mouse settings in windows. so you see that games made in C2 if are not exported in NW.js or for desktop platforms, wold have a issue even if mouse multiple buttons are supported. since wold switch the browser... but i guess it could be made so it overrides the default functions if supported as C2 plugin. but im not sure how practical that wold be. im guessing the best approach wold be to create the mapping of the gaming mouse by Browser.object to cancel the gaming mouse default controls for the extra buttons, and assign them to something else in the game in a menu but that is an entire headache, by itself.


Edit2: maybe this request should be in the Plugin request section? maybe some plugin guru will pick up the challenge?
B
78
S
23
G
69
Posts: 1,353
Reputation: 44,005

Post » Sun Nov 13, 2016 12:37 pm

I'm not sure how the gaming mouse inputs are registered, but the Keyboard object might do the trick.

You can use the conditions "Key code is down" or "On key code pressed" and put the specific code for that button. You can find a button's code using the expression "LastKeyCode".
B
49
S
15
G
6
Posts: 535
Reputation: 7,197

Post » Sun Nov 13, 2016 5:46 pm

TGeorgeMihai wrote:I'm not sure how the gaming mouse inputs are registered, but the Keyboard object might do the trick.

You can use the conditions "Key code is down" or "On key code pressed" and put the specific code for that button. You can find a button's code using the expression "LastKeyCode".
It's a MOUSE. Not a KEYBOARD. (I'm not mad, I'm just giving you info :D )
I'm not the best, but i like making games in Construct
B
23
S
7
G
1
Posts: 35
Reputation: 2,222

Post » Sun Nov 13, 2016 6:30 pm

Is still a button, an input. I'm not at home to test it on my A4Tech Bloody V5, but it might work ;)
B
49
S
15
G
6
Posts: 535
Reputation: 7,197

Post » Tue Nov 15, 2016 10:13 pm

Yup, doesn't work ... It was worth a try ;)

These buttons are XButton1 and XButton2 .

Code: Select all
XButton1 -- 4th mouse button. Typically performs the same function as Browser_Back
XButton2 -- 5th mouse button. Typically performs the same function as Browser_Forward

https://autohotkey.com/docs/KeyList.htm
B
49
S
15
G
6
Posts: 535
Reputation: 7,197

Post » Wed Nov 16, 2016 4:00 am

This topic may be relevant:
more-mouse-buttons_t171201?&hilit=Mouse

From JavaScript there doesn't seem to be a way to access the additional buttons. The mouse api alluded to being able to, but in the example capx using it shows that it doesn't work.
You could map the buttons to keyboard keys or if you use just nwjs there may be way to utilize an addon to use another language to access more of the system than what the browser usually permits.
B
94
S
33
G
113
Posts: 5,356
Reputation: 73,273

Post » Wed Nov 16, 2016 4:38 am

R0J0hound wrote:This topic may be relevant:
more-mouse-buttons_t171201?&hilit=Mouse

From JavaScript there doesn't seem to be a way to access the additional buttons. The mouse api alluded to being able to, but in the example capx using it shows that it doesn't work.
You could map the buttons to keyboard keys or if you use just nwjs there may be way to utilize an addon to use another language to access more of the system than what the browser usually permits.
Is there a way to support it on Free edition?
I'm not the best, but i like making games in Construct
B
23
S
7
G
1
Posts: 35
Reputation: 2,222

Next

Return to Construct 2 General

Who is online

Users browsing this forum: maddy467 and 6 guests