mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-04-08 18:35:09 +02:00
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…
x
Reference in New Issue
Block a user