# FInputDeviceScope is not set in IGameInputDeviceProcessor::EvaluateSwitchState() - intentional or an oversight?

**URL:** <https://forums.unrealengine.com/t/finputdevicescope-is-not-set-in-igameinputdeviceprocessor-evaluateswitchstate-intentional-or-an-oversight/2739131>\
**Category:** Pipeline & Plugins\
**Tags:** unreal-engine, question\
**Created:** [July 29, 2026, 11:11am UTC](https://forums.unrealengine.com/t/finputdevicescope-is-not-set-in-igameinputdeviceprocessor-evaluateswitchstate-intentional-or-an-oversight/2739131 "2026-07-29T11:11:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![burtonpoo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@burtonpoo](https://forums.unrealengine.com/u/burtonpoo)\
**Post date:** [July 29, 2026, 11:11am UTC](https://forums.unrealengine.com/t/finputdevicescope-is-not-set-in-igameinputdeviceprocessor-evaluateswitchstate-intentional-or-an-oversight/2739131/1 "2026-07-29T11:11:10Z")

</div>

Engine version: 5.7.1  
File: Engine/Plugins/Runtime/GameInput/Source/GameInputBase/Private/GameInputDeviceProcessor.cpp

In the GameInput plugin, the three helpers on IGameInputDeviceProcessor that dispatch  
messages to the FGenericApplicationMessageHandler are inconsistent about setting  
FInputDeviceScope:

- OnControllerAnalog() → sets the scope (line ~146, gated by bSetDeviceScope)
- EvaluateButtonStates() → sets the scope (lines ~203 and ~222)
- EvaluateSwitchState() → does NOT set the scope at all  
As a result, when a controller’s D-pad arrives as a hat switch (GameInputKindController  
devices going through FGameInputControllerDeviceProcessor::ProcessControllerSwitchState,  
and also FGameInputFlightStickDeviceProcessor’s hatSwitch), FInputDeviceScope::GetCurrent()  
returns null inside the resulting Slate input event. FCommonInputPreprocessor  
(CommonInputPreprocessor.cpp, ~line 242) therefore skips its automatic gamepad-type  
detection entirely for those events. We are seeing this on Windows with a DualSense  
configured via DeviceConfigurations (bProcessControllerSwitchState=True): pressing the  
D-pad never updates the detected gamepad type, so CommonUI keeps showing the previously  
detected button icons.

Is the omission in EvaluateSwitchState() deliberate, or is it a bug?
