XBox Controllers Plugin

Questions and comments specific to a particular plugin should go here.

Re: XBox Controllers Plugin

Postby kgschlosser » Tue Jun 06, 2017 6:34 am

I updated the plugin if you want to give it a try
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
 
Posts: 2699
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: XBox Controllers Plugin

Postby kgschlosser » Tue Jun 06, 2017 12:44 pm

I have been told it is working pretty good. But there may be a glitch in the automatic calibration of the polling speed. This I am going to need more information on. If you come across it. I will add additional debugging to cover that section of the code.

I am also going to do a rework of the FFB. I am going to make it so that you can put in a pattern and it will do that pattern for you
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
 
Posts: 2699
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: XBox Controllers Plugin

Postby Diz » Tue Jun 06, 2017 1:17 pm

ok great! that ones much better... no problems as yet... thanks :D
Diz
Experienced User
 
Posts: 121
Joined: Tue Jan 10, 2017 4:49 pm

Re: XBox Controllers Plugin

Postby kgschlosser » Tue Jun 06, 2017 1:56 pm

you got the controller to calibrate properly?
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
 
Posts: 2699
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: XBox Controllers Plugin

Postby Diz » Tue Jun 06, 2017 2:19 pm

i did indeed, heres the output:

15:18:23 ---> Welcome to EventGhost <---
15:18:28 Calibrating Controller 1
15:18:28 Tap the B button as fast as possible until you see a calibrated message
15:18:36 Controller 1 is calibrated, Speed is 0.06
15:18:37 XBoxControllers.Controller1.B.Pressed
Diz
Experienced User
 
Posts: 121
Joined: Tue Jan 10, 2017 4:49 pm

Re: XBox Controllers Plugin

Postby kgschlosser » Tue Jun 06, 2017 2:39 pm

I am going to institute a method so that during this calibration you will be able to adjust it manually as well.

but basically this is bow this process works. every time a key is pressed and released a message gets made that this has been done. and that message has a number attached to it. and that number increments by 1 each time a new message is made. so when we poll the controller ideally we want to get every message. tho as you can see to do this your polling time is 0.06 seconds or 60 milliseconds. a 60 millisecond polling time is going to increase you EG processor usage. and if you have 4 controllers doing this at the same time it's going to jump up quite a bit. but the trade off is if you slow it down then you can miss buttons being pressed. I am not sure but you can test this out for me. is if you press the button slower will it produce a slower polling time?
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
 
Posts: 2699
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: XBox Controllers Plugin

Postby kgschlosser » Tue Jun 06, 2017 2:45 pm

I am also going to rework the analog joys. I am going to offer the option to have the joy control the mouse. I am also going to give the option of which joy controls the movement. and if you want to use pushing the sticks down as the mouse clicks or using the triggers as the clicks.

there will be 2 ways of controlling the mouse. the first one is a progressive thing. meaning the more you push the stick in a specific direction the faster it will move in that direction. like the eraser control on an IBM ThinkPad. the second way is identical to screen position. I will grab the monitor resolution and re range that resolution to the resolution of the joy. so if you move the joy to a specific position it will move the mouse to the position on the screen it will work almost exactly identical to how a desktop mouse works. this will take some time to work into the code but it will be a really cool feature when done.
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
 
Posts: 2699
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: XBox Controllers Plugin

Postby Diz » Tue Jun 06, 2017 2:58 pm

oh well actually the next time i calibrated it said 0.08. i will test it some more... and i like the sound of the mouse control ideas
Diz
Experienced User
 
Posts: 121
Joined: Tue Jan 10, 2017 4:49 pm

Re: XBox Controllers Plugin

Postby kgschlosser » Tue Jun 06, 2017 2:59 pm

go really slow with the button presses
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
 
Posts: 2699
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: XBox Controllers Plugin

Postby kgschlosser » Tue Jun 06, 2017 3:00 pm

I have just added events for the starting and stopping of the calibration. I did this so you can put up an osd on the screen and let you know that you have to do it so you don't just pick it up and start pressing buttons and wiondering why it's not working.. But it doesn't have to be only button B it can be any button pressed. it's just the pressing and releasing that i am checking for.
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
 
Posts: 2699
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: XBox Controllers Plugin

Postby Diz » Tue Jun 06, 2017 3:11 pm

got it up to 0.16 by going pretty slow. so its better to go slow huh? why the plugin tells you to go as fast as possible then? :lol:
Diz
Experienced User
 
Posts: 121
Joined: Tue Jan 10, 2017 4:49 pm

Re: XBox Controllers Plugin

Postby Diz » Tue Jun 06, 2017 3:14 pm

ok i see the difference, its slowing down the repeat events when you hold a button. i wasnt actually sure what this calibration was for
Diz
Experienced User
 
Posts: 121
Joined: Tue Jan 10, 2017 4:49 pm

Re: XBox Controllers Plugin

Postby kgschlosser » Tue Jun 06, 2017 3:28 pm

the calibration is 2 fold. but because of what you just stated I am going to make it dynamic.

so the slower you press it the time slows down. so i can have it increase the poll time if it misses a packet and decrease the poll time if it's hitting them all the time. and if the controller sits dormant for say 10 times the polling interval it will decrease the polling time as well. this will help to reduce CPU load based on use. so for instance if you are rapidly pressing a button to page down a webpage for instance. it will check the remote faster. but if you are simply doing something like channel surfing and pressing the button once every 5 seconds or so it will slow down the polling time,
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
 
Posts: 2699
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: XBox Controllers Plugin

Postby Diz » Tue Jun 06, 2017 3:39 pm

oh ok cool... so the manual calibration wouldnt be needed if it was dynamic?
Diz
Experienced User
 
Posts: 121
Joined: Tue Jan 10, 2017 4:49 pm

Re: XBox Controllers Plugin

Postby kgschlosser » Tue Jun 06, 2017 3:58 pm

ok attached is a test to see if the dynamic calibration is possible.

if the remote appears not to work then press a button rapidly and see if that gives it some motivation to work
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
 
Posts: 2699
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

PreviousNext

Return to Plugin Support

Who is online

Users browsing this forum: No registered users and 5 guests