Learn
Motor Sınıfı
GamepadService
Oluşturulamaz
Hizmet
Çoğaltılmamış

*Bu içerik, yapay zekâ (beta) kullanılarak çevrildi ve hatalar içerebilir. Sayfayı İngilizce görüntülemek için buraya tıkla.


Özet
Devralınan Üyeler

API Referansı
Özellikler
GamepadCursorEnabled
Roblox Betik Güvenliği
Paralel oku
Capabilities: Input
GamepadService.GamepadCursorEnabled:boolean
Kod Örnekleri
Oyun Kumandası Servisi - Oyun Kumandası İmleci Etkin Özelliği
local gamepadService = game.GamepadService
gamepadService:GetPropertyChangedSignal("GamepadCursorEnabled"):Connect(function()
local enabled = gamepadService.GamepadCursorEnabled
if enabled then
-- Sanal imleç etkin olduğunda özel kod
else
-- Sanal imleç devre dışı olduğunda özel kod
end
end)

Yöntemler
DisableGamepadCursor
Capabilities: Input
GamepadService:DisableGamepadCursor():()
Dönüşler
()
Kod Örnekleri
GamepadService - Oyun Kumandası İşaretçisini Devre Dışı Bırak
local gamepadService = game.GamepadService
local userInputService = game.UserInputService
userInputService.InputBegan:Connect(function(inputObject, gameProcessed)
if inputObject.KeyCode == Enum.KeyCode.ButtonB then
gamepadService:DisableGamepadCursor()
end
end)

EnableGamepadCursor
Capabilities: Input
GamepadService:EnableGamepadCursor(guiObject:Instance):()
Parametreler
guiObject:Instance
Dönüşler
()
Kod Örnekleri
Oyun Kolu Servisi - Oyun Kolu İmlecini Etkinleştir
local gamepadService = game.GamepadService
local userInputService = game.UserInputService
local startObject = script.Parent
userInputService.InputBegan:Connect(function(inputObject, gameProcessed)
if inputObject.KeyCode == Enum.KeyCode.ButtonA then
gamepadService:EnableGamepadCursor(startObject)
end
end)

©2026 Roblox Corporation. Roblox, the Roblox logo and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.