markusfisch / ShaderEditor

Android app to create GLSL shaders and use them as live wallpaper
https://play.google.com/store/apps/details?id=de.markusfisch.android.shadereditor
MIT License
924 stars 137 forks source link

Can I detect my phone is charged or not? #117

Closed IADarkFate closed 2 years ago

IADarkFate commented 2 years ago

I want to make a live wallpaper with different condition if I charge my phone or I didn't charge my phone, but I don't know that possible or not

markusfisch commented 2 years ago

Hello, you can use the powerConnected uniform for that. It's 1 when the phone is charging at 0 otherwise.