Fix MSVC dll building

This commit is contained in:
2026-01-29 20:17:04 +01:00
parent 1ec06a26cc
commit 683c226ce0
7 changed files with 21 additions and 15 deletions

View File

@@ -24,13 +24,13 @@ SOFTWARE.
#include <pd/drivers/hid.hpp>
namespace PD {
bool HidDriver::IsEvent(Event e, Key keys) { return KeyEvents[0][e] & keys; }
PD_API bool HidDriver::IsEvent(Event e, Key keys) { return KeyEvents[0][e] & keys; }
bool HidDriver::IsEvent(Event e, KbKey keys) {
PD_API bool HidDriver::IsEvent(Event e, KbKey keys) {
return KbKeyEvents[0][e].Has(keys);
}
void HidDriver::SwapTab() {
PD_API void HidDriver::SwapTab() {
auto tkd = KeyEvents[1][Event_Down];
auto tkh = KeyEvents[1][Event_Held];
auto tku = KeyEvents[1][Event_Up];
@@ -46,7 +46,7 @@ void HidDriver::SwapTab() {
* If this func has no verride, still clear the stats
* cause if they are empty this leads to a crash
*/
void HidDriver::Update() {
PD_API void HidDriver::Update() {
// Clear States
for (int i = 0; i < 2; i++) {
KeyEvents[i][Event_Down] = 0;

View File

@@ -306,5 +306,7 @@ PD_API void DrawList::DrawLine(const fvec2& a, const fvec2& b, u32 color,
PathAdd(b);
PathStroke(color, t);
}
PD_API void DrawList::DrawTexture(Texture::Ref tex) { CurrentTex = tex; }
} // namespace Li
} // namespace PD