D3D9: Add support for D3D9Ex, which has faster flipping and an option for lower latency, and some other stuff.

MANAGED textures are not allowed though so compensate for that by making them dynamic for now.
This commit is contained in:
Henrik Rydgard committed 2014-09-09 22:28:35 +02:00
1 parent 8978182a41
commit 422ae62b63
8 files changed
+129 -61

No files matched your search

+28 -28
View File
@@ -360,34 +360,34 @@ public:
yAxis_(yAxis), yDevice_(yDevice),
curX_(0.0f), curY_(0.0f),
maxCount_(500) {}
void Draw(UIContext &dc) override;
void Update(const InputState &input_state) override;
void Axis(const AxisInput &input) {
if (input.axisId == xAxis_) {
curX_ = input.value;
} else if (input.axisId == yAxis_) {
curY_ = input.value;
}
}
private:
struct Location {
Location() : x(0.0f), y(0.0f) {}
Location(float xx, float yy) : x(xx), y(yy) {}
float x;
float y;
};
int xAxis_;
int yAxis_;
int xDevice_;
int yDevice_;
float curX_;
float curY_;
std::deque<Location> locations_;
int maxCount_;
void Draw(UIContext &dc) override;
void Update(const InputState &input_state) override;
void Axis(const AxisInput &input) {
if (input.axisId == xAxis_) {
curX_ = input.value;
} else if (input.axisId == yAxis_) {
curY_ = input.value;
}
}
private:
struct Location {
Location() : x(0.0f), y(0.0f) {}
Location(float xx, float yy) : x(xx), y(yy) {}
float x;
float y;
};
int xAxis_;
int yAxis_;
int xDevice_;
int yDevice_;
float curX_;
float curY_;
std::deque<Location> locations_;
int maxCount_;
};
void JoystickHistoryView::Draw(UIContext &dc) {