Compare commits
4 commits
master
...
release-2.
Author | SHA1 | Date | |
---|---|---|---|
|
686c83ce75 | ||
|
e5c462b3a3 | ||
|
d69da415b9 | ||
|
4168c616b5 |
5 changed files with 15 additions and 22 deletions
12
debian/control
vendored
12
debian/control
vendored
|
@ -30,16 +30,16 @@ Build-Depends: debhelper (>= 9),
|
||||||
libxxf86vm-dev
|
libxxf86vm-dev
|
||||||
Homepage: http://www.libsdl.org/
|
Homepage: http://www.libsdl.org/
|
||||||
|
|
||||||
Package: libsdl2
|
Package: libsdl2-2.0-0
|
||||||
Architecture: any
|
Architecture: any
|
||||||
Multi-Arch: same
|
Multi-Arch: same
|
||||||
Pre-Depends: ${misc:Pre-Depends}
|
Pre-Depends: ${misc:Pre-Depends}
|
||||||
Depends: ${misc:Depends},
|
Depends: ${misc:Depends},
|
||||||
${shlibs:Depends},
|
${shlibs:Depends},
|
||||||
libudev0 [linux-any],
|
libudev0 | libudev1 [linux-any],
|
||||||
libdbus-1-3 [linux-any]
|
libdbus-1-3 [linux-any]
|
||||||
Conflicts: libsdl-1.3-0
|
Conflicts: libsdl-1.3-0, libsdl2
|
||||||
Replaces: libsdl-1.3-0
|
Replaces: libsdl-1.3-0, libsdl2
|
||||||
Description: Simple DirectMedia Layer
|
Description: Simple DirectMedia Layer
|
||||||
SDL is a library that allows programs portable low level access to
|
SDL is a library that allows programs portable low level access to
|
||||||
a video framebuffer, audio output, mouse, and keyboard.
|
a video framebuffer, audio output, mouse, and keyboard.
|
||||||
|
@ -51,7 +51,7 @@ Section: libdevel
|
||||||
Architecture: any
|
Architecture: any
|
||||||
Multi-Arch: same
|
Multi-Arch: same
|
||||||
Depends: ${misc:Depends},
|
Depends: ${misc:Depends},
|
||||||
libsdl2 (= ${binary:Version}),
|
libsdl2-2.0-0 (= ${binary:Version}),
|
||||||
libc6-dev,
|
libc6-dev,
|
||||||
libgl1-mesa-dev
|
libgl1-mesa-dev
|
||||||
Conflicts: libsdl-1.3-dev
|
Conflicts: libsdl-1.3-dev
|
||||||
|
@ -68,7 +68,7 @@ Section: debug
|
||||||
Architecture: any
|
Architecture: any
|
||||||
Multi-Arch: same
|
Multi-Arch: same
|
||||||
Depends: ${misc:Depends},
|
Depends: ${misc:Depends},
|
||||||
libsdl2 (= ${binary:Version}),
|
libsdl2-2.0-0 (= ${binary:Version}),
|
||||||
Description: Simple DirectMedia Layer debug files
|
Description: Simple DirectMedia Layer debug files
|
||||||
SDL is a library that allows programs portable low level access to a video
|
SDL is a library that allows programs portable low level access to a video
|
||||||
framebuffer, audio output, mouse, and keyboard.
|
framebuffer, audio output, mouse, and keyboard.
|
||||||
|
|
2
debian/rules
vendored
2
debian/rules
vendored
|
@ -6,7 +6,7 @@ DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
|
||||||
confflags = --disable-rpath --disable-video-directfb \
|
confflags = --disable-rpath --disable-video-directfb \
|
||||||
--disable-nas --disable-esd --disable-arts \
|
--disable-nas --disable-esd --disable-arts \
|
||||||
--disable-alsa-shared --disable-pulseaudio-shared \
|
--disable-alsa-shared --disable-pulseaudio-shared \
|
||||||
--disable-x11-shared
|
--disable-x11-shared --disable-video-mir
|
||||||
|
|
||||||
%:
|
%:
|
||||||
dh $@ --parallel
|
dh $@ --parallel
|
||||||
|
|
|
@ -314,20 +314,9 @@ ALSA_PlayDevice(_THIS)
|
||||||
swizzle_alsa_channels(this, this->hidden->mixbuf, frames_left);
|
swizzle_alsa_channels(this, this->hidden->mixbuf, frames_left);
|
||||||
|
|
||||||
while ( frames_left > 0 && SDL_AtomicGet(&this->enabled) ) {
|
while ( frames_left > 0 && SDL_AtomicGet(&this->enabled) ) {
|
||||||
int status;
|
/* !!! FIXME: This works, but needs more testing before going live */
|
||||||
|
/* ALSA_snd_pcm_wait(this->hidden->pcm_handle, -1); */
|
||||||
/* This wait is a work-around for a hang when USB devices are
|
int status = ALSA_snd_pcm_writei(this->hidden->pcm_handle,
|
||||||
unplugged. Normally it should not result in any waiting,
|
|
||||||
but in the case of a USB unplug, it serves as a way to
|
|
||||||
join the playback thread after the timeout occurs */
|
|
||||||
status = ALSA_snd_pcm_wait(this->hidden->pcm_handle, 1000);
|
|
||||||
if (status == 0) {
|
|
||||||
/*fprintf(stderr, "ALSA timeout waiting for available buffer space\n");*/
|
|
||||||
SDL_OpenedAudioDeviceDisconnected(this);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
status = ALSA_snd_pcm_writei(this->hidden->pcm_handle,
|
|
||||||
sample_buf, frames_left);
|
sample_buf, frames_left);
|
||||||
|
|
||||||
if (status < 0) {
|
if (status < 0) {
|
||||||
|
|
|
@ -459,7 +459,7 @@ ConfigJoystick(SDL_Joystick * joystick, int fd)
|
||||||
++joystick->nbuttons;
|
++joystick->nbuttons;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (i = 0; i < ABS_MAX; ++i) {
|
for (i = 0; i < ABS_MISC; ++i) {
|
||||||
/* Skip hats */
|
/* Skip hats */
|
||||||
if (i == ABS_HAT0X) {
|
if (i == ABS_HAT0X) {
|
||||||
i = ABS_HAT3Y;
|
i = ABS_HAT3Y;
|
||||||
|
@ -720,6 +720,10 @@ HandleInputEvents(SDL_Joystick * joystick)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case EV_ABS:
|
case EV_ABS:
|
||||||
|
if (code >= ABS_MISC) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
switch (code) {
|
switch (code) {
|
||||||
case ABS_HAT0X:
|
case ABS_HAT0X:
|
||||||
case ABS_HAT0Y:
|
case ABS_HAT0Y:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue