WPF app to find system idle time - GetLastInputInfo doesnot identify joystick
===

In my WPF app, I have to detect the System Idle Time ( that includes not using mouse, keyboard,joystick).

I used the GetLastInputInfo to get the idle time of the system. 
But I found that GetLastInputInfo  is working only for input from Mouse or Keyboard, but not from joystick.

Is there a way or any Win32 API that can give the LastInputInfo by detecting the input from all three devices(mouse,keyboard,joystick)?