From 29a843ffbde05448ea492545eba37750ce34e3a1 Mon Sep 17 00:00:00 2001
From: Kari <karsten.isakovic@web.de>
Date: Sat, 12 Aug 2023 15:52:10 +0000
Subject: [PATCH] Fix access to middle button state. ( self.input is of type
 InputController which doesn't have an 'right_shoulder' attribute )

---
 docs/badge/application-programming.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/badge/application-programming.rst b/docs/badge/application-programming.rst
index 785d599a65..4d1d5e0bbf 100644
--- a/docs/badge/application-programming.rst
+++ b/docs/badge/application-programming.rst
@@ -368,7 +368,7 @@ Here is our previous example rewritten to make use of `BaseView`:
         def think(self, ins: InputState, delta_ms: int) -> None:
             super().think(ins, delta_ms) # Let BaseView do its thing
 
-            if self.input.right_shoulder.middle.pressed:
+            if self.input.buttons.app.middle.pressed:
                 self.vm.push(SecondScreen())
 
     st3m.run.run_view(Example())
@@ -419,7 +419,7 @@ Here is our previous code changed to use `Application` for the base of its main
         def think(self, ins: InputState, delta_ms: int) -> None:
             super().think(ins, delta_ms) # Let Application do its thing
 
-            if self.input.right_shoulder.middle.pressed:
+            if self.input.buttons.app.middle.pressed:
                 self.vm.push(SecondScreen())
 
     if __name__ == '__main__':
-- 
GitLab