Chat on-screen keyboard only when using gamepad
This commit is contained in:
parent
b04e869783
commit
49d1c6c73e
|
@ -933,9 +933,11 @@ Public Class ChatScreen
|
|||
|
||||
Dim ControllerShown As Boolean = False
|
||||
Public Overrides Sub ChangeTo()
|
||||
If ControllerHandler.IsConnected() = True And Core.GameOptions.GamePadEnabled = True And ControllerShown = False Then
|
||||
Core.SetScreen(New InputScreen(Me, "", InputScreen.InputModes.Text, "", 38, New List(Of Texture2D), AddressOf Me.GetControllerInput))
|
||||
ControllerShown = True
|
||||
If ControllerHandler.ButtonDown(Buttons.RightShoulder) = True Then
|
||||
If ControllerHandler.IsConnected() = True And Core.GameOptions.GamePadEnabled = True And ControllerShown = False Then
|
||||
Core.SetScreen(New InputScreen(Me, "", InputScreen.InputModes.Text, "", 38, New List(Of Texture2D), AddressOf Me.GetControllerInput))
|
||||
ControllerShown = True
|
||||
End If
|
||||
End If
|
||||
End Sub
|
||||
|
||||
|
|
Loading…
Reference in New Issue