irungentoo / Xiaomi_gamepad

It's a nice gamepad.
314 stars 69 forks source link

Work as a service? #41

Open Sp4iK opened 7 years ago

Sp4iK commented 7 years ago

Hi, could this software be coded to work as a windows service? This way we don't have to launch it every time we want to emulate a 360 gamepad if we want it to behave like that all the time. It could also handle connection issues, as when sleeping the system that it won't work after that if you don't restart the app.

BTW, is there a way to know the remaining battery of the controller?

tu-nv commented 7 years ago

You could set the program to run at startup.

From the documentation, there is a byte that indicates battery level. However, it seems that the battery monitoring function has not been implemented yet.

Paperfeed commented 5 years ago

I've forked this branch and created both a windows service version and an application version that displays the battery level in the tray icon. Check it out if you want.

ThmsD commented 5 years ago

@Paperfeed I just downloaded your Mi.exe file. Good job but the battery level is hard to see. (see picture) image

Paperfeed commented 5 years ago

Currently color of the text on the icon is based on how charged the controller is, turning darker shades of orange/red as it nears zero. What would you suggest? As for size, a 16 by 16 icon is the limit

On Sun, Feb 24, 2019, 17:13 Thomas notifications@github.com wrote:

@Paperfeed https://github.com/Paperfeed I just downloaded your Mi.exe file. Good job but the battery level is hard to see. (see picture) [image: image] https://user-images.githubusercontent.com/11979724/53301791-66d42480-3857-11e9-901d-3901050b99de.png

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/irungentoo/Xiaomi_gamepad/issues/41#issuecomment-466790401, or mute the thread https://github.com/notifications/unsubscribe-auth/ABj8V3ErFMFvWq_gH_csLkMV64zPKwkmks5vQroRgaJpZM4Ly2qN .

LEMIR13 commented 5 years ago

Seems great, but I can't find Mipadservice.exe in your repo, only command files. Any help ?

Paperfeed commented 5 years ago

Look under the releases. That's where I have put the compiled files

On Sat, Mar 2, 2019, 11:35 LEMIR13 notifications@github.com wrote:

Seems great, but I can't find Mipadservice.exe in your repo, only command files. Any help ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/irungentoo/Xiaomi_gamepad/issues/41#issuecomment-468908664, or mute the thread https://github.com/notifications/unsubscribe-auth/ABj8VxU9BrKHAQtYM2ghNKLLi4sKASHyks5vSlPvgaJpZM4Ly2qN .

LEMIR13 commented 5 years ago

thanks ! Seems to work for me on Win 10. I'm using the Mi.exe and not the service.exe I'm using a dark skin so I can see the battery level. image