Added the camera class
Added the DDS Texture Loading for future use Added the gamepad class for future use Added first child method to the scenegraph Added RGB to intensity and lerp methods to the shared methods class Added the terrain node class with normals Fixed issue with submeshnode not passing the world transform to the actual meshes
This commit is contained in:
24
Graphics2/GamePadController.h
Normal file
24
Graphics2/GamePadController.h
Normal file
@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
#include "Core.h"
|
||||
#include "DirectXCore.h"
|
||||
#include <XInput.h>
|
||||
#pragma comment(lib, "XInput.lib")
|
||||
|
||||
class GamePadController
|
||||
{
|
||||
public:
|
||||
GamePadController();
|
||||
~GamePadController();
|
||||
void ProcessGameController();
|
||||
|
||||
private:
|
||||
XINPUT_STATE _controllerState;
|
||||
DWORD _lastPacketNumber;
|
||||
bool _firstTime;
|
||||
|
||||
// These two values are used to avoid having to calculate square roots (which are very time consuming)
|
||||
// when we are checking if the movement of the left or right thumb stick is in the dead zone
|
||||
DWORD _leftThumbDeadZoneSquared;
|
||||
DWORD _rightThumbDeadZoneSquared;
|
||||
};
|
||||
|
Reference in New Issue
Block a user