kotlin-graphics/imgui

[Java] Drag drop payload always returning an empty byte array

Closed this issue · 6 comments

Example

No matter what I set the payload to it only returns empty bytes in the return array. Is there something I'm missing here?

Uhm, no idea because I never had a chance to use it..

Is it urgent? Because I'd like first to catch up the original and then try to fix it, I guess a week or so..

Not an urgent issue. I'm not very familiar with koltin but from what I see in the dragDropSource function the only two things implemented to be put into the payload is vec2's and integers.

Hi, quick info: my machine got broken, I'll be back asap

There seems to be a bug with the hash function.. it fire an IndexOutOfBounds exception..

Hey @KuliuTho,

sorry for the huge delay, but many things came in the way..

Anyway, this was quite tricky because the hash function was failing since I had to pass a String, but the problem was that special values, such as -23 arent valid and they get automatically changed.
This happens because the default charset used is UTF8.
Instead, with ISO-8859-1 all values are valid

Give it a try, I also filled all the other possibilities, Vec2 included

Hi! Friendly reminder that there has been no activity here for over a month and this appears to be fixed. If you wish to keep this open, please respond with what still is an issue, or this will be closed in a week. Thanks!