SimHub Befehl umdrehen
Kann mir jemand folgendes umdrehen? Das Standardmäßig das Ergebnis 0 ist und erst bei Drücken der Taste das Ergebnis 1 ist?
if (root["sleepMode"] == null){
root["sleepMode"] = 0;
}
if (root["sleepDebounce"] == null){
root["sleepDebounce"] = 0;
}
var cval = !$prop('InputStatus.JoystickPlugin.Pro_Switch_Panel_B16')
if (cval){
if (!root["sleepDebounce"]){
root["sleepMode"] = !root["sleepMode"];
root["sleepDebounce"] = 1;
}
return root["sleepMode"];
}
else{
root["sleepDebounce"] = 0;
}
return root["sleepMode"];
Solution:Jump to solution
```if (root["sleepMode"] == null){
root["sleepMode"] = 0;
}
if (root["sleepDebounce"] == null){
root["sleepDebounce"] = 0;...
16 Replies
other-emerald•10mo ago
Letzte Zeile:
Solution
other-emerald•10mo ago
exotic-emerald•10mo ago
![No description](https://answer-overflow-discord-attachments.s3.amazonaws.com/1162390444299259924/image.png)
other-emerald•10mo ago
Würde es dir komplett hin schreiben, aber von mobile suckt das n bisschen.
subsequent-cyan•10mo ago
ich teste gleich mal ... wenn das nicht klappt reicht auch wenn du zeit findest 🙂
other-emerald•10mo ago
Da sieht man wieder, dass du bei der Telekom was mit dem Support machst. Antwort ist 100% richtig aber auch 100% nutzlos. ![KEKW](https://cdn.discordapp.com/emojis/639543755338153984.png)
![KEKW](https://cdn.discordapp.com/emojis/639543755338153984.png)
exotic-emerald•10mo ago
dienst nach vorschrift
und ich bin nicht im SUPPORT
😠
subsequent-cyan•10mo ago
Klappt ich danke dir ❤️
other-emerald•10mo ago
Sehr gerne. ![gsrHerz](https://cdn.discordapp.com/emojis/836573375501303828.png)
![gsrHerz](https://cdn.discordapp.com/emojis/836573375501303828.png)
exotic-emerald•10mo ago
helfe wo ich kann
other-emerald•10mo ago
Aber hast ja Mal mindestens n stint da gemacht in der Ausbildung oder so, bei der Antwort. ![KEKW](https://cdn.discordapp.com/emojis/639543755338153984.png)
![KEKW](https://cdn.discordapp.com/emojis/639543755338153984.png)
exotic-emerald•10mo ago
auch nich lol
fisi bei der deutschen post gelernt, dann zu dhl international, dann zu t-systems.
ohne auch nur einmal was dafür zu tun 😂
subsequent-cyan•10mo ago
Bist du es? @Kevin Sommer 🐌
![No description](https://answer-overflow-discord-attachments.s3.amazonaws.com/1162392103393955900/IMG_6827.png)
exotic-emerald•10mo ago
other-emerald•10mo ago
So, hab die markierte Antwort nochmal editiert um die richtige Antwort für alle zu reflektieren.
subsequent-cyan•10mo ago
Danke 🙂