mirror of
https://github.com/Maschell/hid_to_vpad.git
synced 2024-09-19 18:29:57 +02:00
aa421146c7
Changelog: - Reaaaaaally a lot of things internally. Rewrote the many parts of the controller_patcher engine. - Added a nice GUI! DarkIrata did a great job at creating the graphics. - Finally fixed the DS3 bug in a official build (sorry for the delay) - Controller can also be used to emulate Pro Controller - Input preview/tester - Supporting even more controller via the network client (e.g Xbox 360, Xbox one, the new DS4,Switch Pro Controller etc.). Big shoutout @QuarkTheAwesome who helped me there! - Added support for DS3 Rumble (thanks @skid_au) - GC-Adapter rumble fixed. - Support for all slots of deviced with multiple slots (like https://github.com/Maschell/controller_patcher_configs/blob/master/DualShock2.ini) - Hopefully reduced the random crashes. - Probably some stuff I already forgot.
31 lines
714 B
C++
31 lines
714 B
C++
#ifndef _GRID_BACKGROUND_H_
|
|
#define _GRID_BACKGROUND_H_
|
|
|
|
#include "GuiImage.h"
|
|
#include "video/shaders/Shader.h"
|
|
|
|
class GridBackground : public GuiImage
|
|
{
|
|
public:
|
|
GridBackground(GuiImageData *imgData);
|
|
virtual ~GridBackground();
|
|
|
|
void setColorIntensity(const glm::vec4 & color) {
|
|
colorIntensity = color;
|
|
}
|
|
const glm::vec4 & getColorIntensity() const {
|
|
return colorIntensity;
|
|
}
|
|
void setDistanceFadeOut(const float & a) {
|
|
distanceFadeOut = a;
|
|
}
|
|
void draw(CVideo *pVideo, const glm::mat4 & modelView);
|
|
private:
|
|
glm::mat4 m_modelView;
|
|
glm::vec4 colorIntensity;
|
|
glm::vec4 alphaFadeOut;
|
|
float distanceFadeOut;
|
|
};
|
|
|
|
#endif // _GRID_BACKGROUND_H_
|