It is currently July 21st, 2019, 3:41 am

XBOX ONE Wireless Controller battery percentage

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

Thurion » January 6th, 2016, 4:30 pm

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

DonHuan » January 7th, 2016, 1:20 pm

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

Re: XBOX ONE Wireless Controller battery percentage

StArL0rd84 » January 7th, 2016, 2:37 pm

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
(#WorkTime# = 1 ? #Work# : ([mEnergyLoss:%] > 100 ? #SleepMode# : #Rainmeter#))
DonHuan
Posts: 3
Joined: January 7th, 2016, 1:14 pm

Re: XBOX ONE Wireless Controller battery percentage

DonHuan » January 7th, 2016, 3:05 pm

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

Thurion » January 7th, 2016, 4:08 pm

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

dgrace » January 7th, 2016, 9:47 pm

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: 336
Joined: February 8th, 2015, 10:07 pm
Location: EU, Denmark.

Re: XBOX ONE Wireless Controller battery percentage

StArL0rd84 » January 25th, 2016, 3:04 pm

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.
(#WorkTime# = 1 ? #Work# : ([mEnergyLoss:%] > 100 ? #SleepMode# : #Rainmeter#))
Thurion
Posts: 5
Joined: December 28th, 2015, 6:20 pm

Re: XBOX ONE Wireless Controller battery percentage

Thurion » January 25th, 2016, 3:17 pm

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

Re: XBOX ONE Wireless Controller battery percentage

StArL0rd84 » January 26th, 2016, 2:27 pm

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.
(#WorkTime# = 1 ? #Work# : ([mEnergyLoss:%] > 100 ? #SleepMode# : #Rainmeter#))
User avatar
StArL0rd84
Posts: 336
Joined: February 8th, 2015, 10:07 pm
Location: EU, Denmark.

Re: XBOX ONE Wireless Controller battery percentage

StArL0rd84 » January 26th, 2016, 2:39 pm

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
(#WorkTime# = 1 ? #Work# : ([mEnergyLoss:%] > 100 ? #SleepMode# : #Rainmeter#))