These are chat archives for UltraStar-Deluxe/USDX

15th
Jul 2016
basisbit
@basisbit
Jul 15 2016 22:34
ping
#51 yes, this seems to work better
RattleSN4K3
@RattleSN4K3
Jul 15 2016 22:35
way better
any idea why it isn't working (besides BassUnit not referenced)?
basisbit
@basisbit
Jul 15 2016 22:38
I changed lots of the midi code to get it to work on non-windows systems, too. I didn't really care about the midi file import feature because that should be dropped and completely rewritten
RattleSN4K3
@RattleSN4K3
Jul 15 2016 22:39
I thought it was used much
basisbit
@basisbit
Jul 15 2016 22:39
about everyone out there uses Yass or USC to make txt files for ultrastardx
never saw anyone actually using the midi to usdx import feature of usdx 1.1
the other way round is much more common especially in the kpop community
RattleSN4K3
@RattleSN4K3
Jul 15 2016 22:41
ah k. not a creator tho... so I don't know
a quick code question, I already debugging it a lot -.-.
SDL_GetModState seems to be an or-ed value of modifier keys. Isn't the following code only return if ALT is pressed but nothing like Alt+Shift, Alt+Ctrl, Alt+AtrGr,...
SDL_GetModState and KMOD_LALT <> 0 or
SDL_GetModState and KMOD_LALT = KMOD_LALT
basisbit
@basisbit
Jul 15 2016 23:00
uh, just a second, have to look at the code
that is bitwise comparision
RattleSN4K3
@RattleSN4K3
Jul 15 2016 23:00
the intention is, I want to track Alt+Enter, but not when any other modifier key is pressed (such as Alt+Shift+Enter)
seems wrong as {0,1} and {0} would be {0}
basisbit
@basisbit
Jul 15 2016 23:04
yes, because that is a logic and, so both places have to be 1 to be 1
sorry, I got too few sleep the last 4 days..
RattleSN4K3
@RattleSN4K3
Jul 15 2016 23:06
happens
basisbit
@basisbit
Jul 15 2016 23:07
you could first check if Alt and Shift and Enter are presse; if not, check if alt and enter are pressed.
RattleSN4K3
@RattleSN4K3
Jul 15 2016 23:08
the list of other possible modifiers is long ^^
basisbit
@basisbit
Jul 15 2016 23:17
anyways, if ((SDL_ModState = KMOD_LALT) and (PressedKey = SDLK_RETURN)) should work
this would at least make sure that none of the other SDL_ModState Keys are pressed
RattleSN4K3
@RattleSN4K3
Jul 15 2016 23:18
SDL_ModState is the SDL functions?
basisbit
@basisbit
Jul 15 2016 23:22
no, it is a logically connected and of what function keys were pressed and the values of those function keys
SDL_ModState := SDL_GetModState and (KMOD_LSHIFT + KMOD_RSHIFT +
KMOD_LCTRL + KMOD_RCTRL + KMOD_LALT + KMOD_RALT);
LShift is the first bit (1), Rshift the second bit (2), LCTRL the third bit (4) and so on. they are just added together and get AND connected to the SDL_GetModState so that only the named buttons are left in the SDL_ModState and only if they are pressed.
RattleSN4K3
@RattleSN4K3
Jul 15 2016 23:31
what happens if the other modifiers are prossed together with the LALT mod
KMOD_LGUI, KMOD_RGUI, KMOD_NUM, KMOD_CAPS, KMOD_MODE
i cannot test RGUI (since windows is already hooked by the system), but CAPS and MOD are still working
that's what I mean
instead of adding all others, there should be expression to check for a single mod and only if it is pressed without any other mod
or i got a blackout :D
basisbit
@basisbit
Jul 15 2016 23:37
anything that is not in the SDL_ModState := SDL_GetModState and (...) will be ignored for that comparison
RattleSN4K3
@RattleSN4K3
Jul 15 2016 23:37
it didn't, from the tests I did
basisbit
@basisbit
Jul 15 2016 23:38
weird. anyways, need to go to bed now. will chat some more tomorrow. what timezone are you in?
RattleSN4K3
@RattleSN4K3
Jul 15 2016 23:39
quite similar
basisbit
@basisbit
Jul 15 2016 23:39
ok, secret developer :D good night!
RattleSN4K3
@RattleSN4K3
Jul 15 2016 23:40
;) gn