It is currently April 27th, 2024, 9:04 pm

XBOX ONE Wireless Controller battery percentage

Get help with creating, editing & fixing problems with skins
Thurion
Posts: 5
Joined: December 28th, 2015, 6:20 pm

Re: XBOX ONE Wireless Controller battery percentage

Post by Thurion »

I used dgrace's skin and changed the input :)

Code: Select all

[measureXInput_LTrig2]
Measure=Plugin
Plugin=XInput
Channel=Battery_Pad
DonHuan
Posts: 3
Joined: January 7th, 2016, 1:14 pm

Re: XBOX ONE Wireless Controller battery percentage

Post by DonHuan »

hi guys, your skin work with Xbox360 Wireless Controller? (sorry for my english)
User avatar
StArL0rd84
Posts: 424
Joined: February 8th, 2015, 10:07 pm
Location: EU, Denmark.

Re: XBOX ONE Wireless Controller battery percentage

Post by StArL0rd84 »

DonHuan wrote:hi guys, your skin work with Xbox360 Wireless Controller? (sorry for my english)
I am not entirely sure.
But i think that the plugin was originally written for 360.
You will have to test it yourself since i don't have a wireless 360 controller handy.
I will post my finished skin here in the forums, and on my DeviantArt once it's done and tested.
http://starl0rd84.deviantart.com/gallery/51285118/Rainmeter
([mWorkTime] = 1 ? #Work# : ([mEnergyLoss:%] >= 70% ? #Chillmode# : </>))
DonHuan
Posts: 3
Joined: January 7th, 2016, 1:14 pm

Re: XBOX ONE Wireless Controller battery percentage

Post by DonHuan »

you can send it for me, i just test skin for you :thumbup:
Thurion
Posts: 5
Joined: December 28th, 2015, 6:20 pm

Re: XBOX ONE Wireless Controller battery percentage

Post by Thurion »

I also have a 360 wireless controller. The XInput API is the same I think so it shoud've worked. Not sure if it works on windows 7 though.
User avatar
dgrace
Developer
Posts: 265
Joined: June 28th, 2014, 8:32 am
Location: Tokyo, Japan

Re: XBOX ONE Wireless Controller battery percentage

Post by dgrace »

I've got a wired 360 controller so I'm unable to test the battery reporting, but can confirm the rest of the XInput stuff works.

dave
User avatar
StArL0rd84
Posts: 424
Joined: February 8th, 2015, 10:07 pm
Location: EU, Denmark.

Re: XBOX ONE Wireless Controller battery percentage

Post by StArL0rd84 »

Thurion wrote:I tested it with a bar instead of a value after I ran into the same problem. Maybe rainmeter doesn't use floatsing-point numbers in text?

According to the code it should return one of these values:
  • 0.0
  • 0.33
  • 0.75
  • 1.0
This is the current state of my meters:

[measureXInput_Battery]
Measure=Plugin
Plugin=XInput
Channel=Battery_Pad

[meterBattery2]
Meter=bar
MeasureName=measureXInput_Battery
BarColor=255,255,255,255
SolidColor=55,55,55,100
BarOrientation=Horizontal
X=0
Y=50
W=55
H=10

But when i move the left stick the bar meter moves.
Weird...

And i even get this error in the log:
You do not have the required permissions to view the files attached to this post.
([mWorkTime] = 1 ? #Work# : ([mEnergyLoss:%] >= 70% ? #Chillmode# : </>))
Thurion
Posts: 5
Joined: December 28th, 2015, 6:20 pm

Re: XBOX ONE Wireless Controller battery percentage

Post by Thurion »

That's weird. It works for me...
I use Win10 x64 and a Xbox 360 wireless controller.
User avatar
StArL0rd84
Posts: 424
Joined: February 8th, 2015, 10:07 pm
Location: EU, Denmark.

Re: XBOX ONE Wireless Controller battery percentage

Post by StArL0rd84 »

I use Win10 x64 and a Xbox One controller. Maybe it's the new controller that's different somehow.
But still, the error where Battery_Pad is not a channel...
I will try and re-download the new plugin and try that. Maybe i got them mixed up.
([mWorkTime] = 1 ? #Work# : ([mEnergyLoss:%] >= 70% ? #Chillmode# : </>))
User avatar
StArL0rd84
Posts: 424
Joined: February 8th, 2015, 10:07 pm
Location: EU, Denmark.

Re: XBOX ONE Wireless Controller battery percentage

Post by StArL0rd84 »

StArL0rd84 wrote:I will try and re-download the new plugin and try that. Maybe i got them mixed up.
Yup, embarrassing. My dll's had been mixed up.
Bar meter no longer moves when left stick is "tickled" XD
And the Battery_Pad error is gone.
Now the long test begins again to see what values it spits out as the battery drains.
Hopefully this skin can be moved out of the parked skins folder now :D
([mWorkTime] = 1 ? #Work# : ([mEnergyLoss:%] >= 70% ? #Chillmode# : </>))