Moved function from header file to cpp file of CInputHandler