input: declare variables dependant on s2w/dt2w when the features are disabled

Signed-off-by: shivamk11 <shivamk11@gmail.com>