# How to detect whether keyboard/mouse or controller was interacted with last

**URL:** <https://forums.unrealengine.com/t/how-to-detect-whether-keyboard-mouse-or-controller-was-interacted-with-last/456679>\
**Category:** C++\
**Tags:** Input, unreal-engine, question, CPP\
**Created:** [October 9, 2019, 12:31pm UTC](https://forums.unrealengine.com/t/how-to-detect-whether-keyboard-mouse-or-controller-was-interacted-with-last/456679 "2019-10-09T12:31:30Z")\
**Posts on this page:** 1\
**Showing post:** 20

<div class="post-metadata">

**Author:** ![nande](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nande/32/1057698_2.png) [@nande](https://forums.unrealengine.com/u/nande)\
**Post date:** [November 5, 2025, 8:30pm UTC](https://forums.unrealengine.com/t/how-to-detect-whether-keyboard-mouse-or-controller-was-interacted-with-last/456679/20 "2025-11-05T20:30:06Z")

</div>

just for someone else looking like me. this thread has some other options.

[Enhanced Input - Detect Gamepad vs Keyboard Input - #19 by elguapador](https://forums.unrealengine.com/t/enhanced-input-detect-gamepad-vs-keyboard-input/1231533/19)

---

_[View the full topic](https://forums.unrealengine.com/t/how-to-detect-whether-keyboard-mouse-or-controller-was-interacted-with-last/456679)._
