Commit graph

82 commits

Author SHA1 Message Date
nat
fa033b1bef Remove delay whilst writing audio. Improves latency.
Make it so wscons video will initialize without keyboard and mouse.

This commit was approved by wiz@
2015-05-31 09:17:53 +00:00
jmcneill
0f86df7444 Read from uhid device and insert events until there are no more events
to consume. Matches SDL2 BSD joystick driver behavior, and makes things
like "iBUFFALO Classic USB Gamepad" work with Retroarch.
2015-03-03 19:14:04 +00:00
jmcneill
4d8cf04af3 flush any pending events from the joystick device when opening on netbsd, bump PKGREVISION 2015-02-25 12:45:59 +00:00
jmcneill
4e722967ca Instead of naming USB joysticks by device name ("/dev/uhid3"), try to give
it a more helpful name ("Logitech Cordless RumblePad 2 @ /dev/uhid3")
2015-02-06 01:27:25 +00:00
jmcneill
0d46a6bf1e Improvements in BSD USB joystick detection:
- Scan uhid0 through uhid63, instead of uhid0 through uhid3.
 - If a uhid reports no usable inputs, skip it. This way your keyboard
   and mouse don't show up as (unusable) joysticks.
2015-02-04 23:51:25 +00:00
wiz
760ae23508 Include limits.h for UINT_MAX (build fix on NetBSD). 2015-01-30 12:02:49 +00:00
jmcneill
07969393f3 add wsmouse mousewheel support 2015-01-29 12:31:07 +00:00
jmcneill
3e00b81a82 initialize keysym->unicode in wskbd input path 2015-01-29 12:22:04 +00:00
jmcneill
945644a075 fix wscons keyboard 2015-01-29 11:28:50 +00:00
jmcneill
fa3a517ce9 add wsmouse support to wscons driver 2015-01-29 01:56:02 +00:00
jmcneill
79e90b58a7 Add USB keyboard support to the wscons driver. 2015-01-28 17:14:47 +00:00
wiz
13b551552d Fix SDL_LoadObject to try the soname itself first, without any prefixes,
and only fallback to other places when that fails.
Bump PKGREVISION.
2014-08-17 09:24:47 +00:00
adam
81eb353c95 Fix building on newer OS X. Courtesy of Jan Danielsson. 2014-04-14 19:27:46 +00:00
asau
3183c34317 Fix capitalization and make it build on FreeBSD 9-10. 2014-03-24 20:29:01 +00:00
wiz
a74f7fd449 Add comments to patches. 2012-09-14 13:20:20 +00:00
jdc
58bb713d66 Fix bus error crash on sparc64, by aligning the object we pass to:
XChangeProperty(..., 32, ...)

correctly.  See also libSDL bug 1427:

  http://bugzilla.libsdl.org/show_bug.cgi?id=1427
2012-02-20 14:55:59 +00:00
wiz
9428731fc7 Update to 1.2.15:
General Notes

   * Fixed assembly register clobbering in CPU info routines
   * Fixed memory stomp when using stretch blit on large images
   * Fixed pixel corruption with overlapping blits
   * SDL_JOYSTICK_DEVICE can be a colon separated list of joystick devices
   * Disabled MMX blitters since they don't compile on modern compilers

Unix Notes

   * Fixed crash in joystick code on newer Linux kernels
   * Fixed channel swizzling for ALSA target with 6-channel output
   * Use the OpenGL GLX_EXT_swap_control extension if available
   * XRandR support is disabled by default because it causes desktop reconfiguring. It can be enabled with the SDL_VIDEO_X11_XRANDR=1
     environment variable, or by applying this patch: http://hg.libsdl.org/SDL/raw-rev/8ec3036098df

Windows Notes

   * Fixed SDL_GL_ACCELERATED_VISUAL handling
   * Fixed application state handling with ALT-Tab
   * Fixed occasional crash handling WM_ACTIVATEAPP in Direct X code
   * Fixed UTF-8 decoding of Russian characters

Mac OS X Notes

   * Fixed building and running on Mac OS X 10.7 (Lion)
2012-01-28 10:33:31 +00:00
wiz
5ef0e78923 Another fix for keyboard handling, from Opolo Remo,
and a fix for the color patterns, also from him.
Bump PKGREVISION.
2012-01-24 15:17:05 +00:00
jmcneill
28318b6a07 use AUDIO_GETBUFINFO when available; bump pkg revision 2011-12-29 10:00:49 +00:00
wiz
1a5cda2348 Fix typo in ifdef.
Bump PKGREVISION.
2011-12-26 12:28:46 +00:00
taca
fae5c8ec48 Fix build problem without WSKBD_TYPE_ZAURUS environment; NetBSD 4_STABLE.
Extra "case" was existed before default label of case statement.
2011-12-11 10:48:58 +00:00
wiz
ae5d56d84b Compile in wscons support on NetBSD.
From Opolo Remo in private mail.
Bump PKGREVISION.
2011-12-01 10:48:07 +00:00
joerg
9e9b529406 Adjust assembler constraint to work with Clang. From FreeBSD. 2011-08-02 17:02:38 +00:00
adam
92be753cf3 Changes 1.2.14:
* Added cast macros for correct usage with C++:
	SDL_reinterpret_cast(type, expression)
	SDL_static_cast(type, expression)
* Added SDL_VIDEO_FULLSCREEN_DISPLAY as a preferred synonym for
  SDL_VIDEO_FULLSCREEN_HEAD on X11.
* Added SDL_DISABLE_LOCK_KEYS environment variable to enable normal
  up/down events for Caps-Lock and Num-Lock keys.
2009-10-23 06:05:07 +00:00
wiz
801971a4ab Look for libGL.so, not any particular libGL.so.<X>, on NetBSD.
Bump PKGREVISION.

From mrg@
2009-09-02 21:19:53 +00:00
ahoka
e93416b2bc Add forgotten patch to CVS.
Thanks Thomas!
2008-12-26 21:53:31 +00:00
reinoud
1199482e9b Apply patch to first unlock the CD before trying to eject it. Since SDL
doesn't seem to have lock/unlock primitives, this looks like the right thing
to do.

Fixes audio/tcd's eject function too.
2008-10-13 17:15:44 +00:00
wiz
977555b87d Update to 1.2.13:
SDL 1.2.13 is a minor bug fix release.

  General Notes

     * Fixed link error when building with Intel Compiler 10.
     * Removed stray C++ comment from public headers.

  Unix Notes

     * Fixed crash in SDL_SoftStretch() on secure operating systems.
     * Fixed undefined symbol on X11 implementations without UTF-8 support.
     * Worked around BadAlloc error when using XVideo on the XFree86 Intel Integrated Graphics driver.
     * Scan for all joysticks on Linux instead of stopping at one that was removed.
     * Fixed use of sdl-config arguments in sdl.m4

  Mac OS X Notes

     * SDL now builds on Mac OS X 10.5 (Leopard).
     * Fixed high frequency crash involving text input.
     * Fixed beeping when the escape key is pressed and UNICODE translation is enabled.
     * Improved trackpad scrolling support.
     * Fixed joystick hat reporting for certain joysticks.
2008-01-13 15:57:59 +00:00
tron
b41f4c1a12 Fix build under Mac OS X Leopard. 2007-12-17 20:40:00 +00:00
wiz
0b0c6183c6 Update to 1.2.12:
1.2.12:
	Added SDL_VIDEO_ALLOW_SCREENSAVER to override SDL's disabling
	of the screensaver on Mac OS X and X11.

Also, many pkgsrc patches were integrated.
2007-07-25 23:31:08 +00:00
ben
4a6b339bdc Fix patch-aa to correctly use strcat, and to be C89 compliant.
Patch supplied by Christian Biere in PR#34738.
2006-10-08 18:40:23 +00:00
rillig
8f989358e3 Added two patches for Solaris 8. The X11 implementation does not define
the xEvent structure unless NEED_EVENTS is defined.
2006-08-03 20:21:20 +00:00
jmmv
7b0118cb1f Revert previous because it changed the libraries libSDL was linked to.
Instead, try to dlopen the libraries straight from the directories they
are in.

Bump PKGREVISION to 2.

Requested and reviewed by wiz@.
2006-07-01 19:08:36 +00:00
wiz
5931798a35 Update to 1.2.10.
Package changes:
Merge SDL-arts, SDL-esound, and SDL-nas packages back as options,
all defaulting to on (add "-arts -esound -nas" to PKG_OPTIONS.SDL
to get the previous behaviour of this package). Reason: trying to
get and stay in sync with upstream, who decided not to take back
the relevant changes. Ok jmmv@

Also follow upstream w.r.t. library version numbers; bump
BUILDLINK_API_DEPENDS for that (no real reason to diverge here).

Most patches have been integrated upstream.

Changes in 1.2.10:

1.2.10:
	If SDL_OpenAudio() is passed zero for the desired format
	fields, the following environment variables will be used
	to fill them in:
		SDL_AUDIO_FREQUENCY
		SDL_AUDIO_FORMAT
		SDL_AUDIO_CHANNELS
		SDL_AUDIO_SAMPLES
	If an environment variable is not specified, it will be set
	to a reasonable default value.

	Added support for the SDL_VIDEO_FULLSCREEN_HEAD environment
	variable, currently supported on X11 Xinerama configurations.

	Added SDL_GL_SWAP_CONTROL to wait for vsync in OpenGL applications.

	Added SDL_GL_ACCELERATED_VISUAL to guarantee hardware acceleration.

	Added current_w and current_h to the SDL_VideoInfo structure,
	which is set to the desktop resolution during video intialization,
	and then set to the current resolution when a video mode is set.

	SDL_SetVideoMode() now accepts 0 for width or height and will use
	the current video mode (or the desktop mode if no mode has been set.)

	Added SDL_GetKeyRepeat()

	Added SDL_config.h, with defaults for various build environments.
2006-06-12 16:20:44 +00:00
wiz
f9403f57e9 Remove some chunks that should not be necessary any longer. 2006-02-07 18:15:50 +00:00
adam
05bc5ada2b Changes 1.2.9:
* Added support for direct color 8-bpp surfaces
* Altivec optimized blitters
* SDL.dll works on Windows 95 again
* Dropping a document onto an SDL app passes it as a command line parameter in MacOS X
* Fixed crash trying to allocate hardware surfaces on MacOS X
* Fixed short read problem with SDL_RWFromMem()
* Fixed gcc parse errors in SDL_audio.h on Windows
* Added support for Tru64 UNIX 4.X
* Improved RISC OS support
* Numerous improvements to the Atari port
* SDL_OPENGLBLIT is officially obsolete
2005-09-07 10:15:39 +00:00
wiz
7319db0a4e Better DragonFlyBSD support from Joerg Sonnenberger.
. find USB headers
. fix joystick support
2005-05-31 17:37:50 +00:00
wiz
76785f1db5 Support for DragonFlyBSD, based on patches from Joerg Sonnenberger. 2005-05-20 20:08:40 +00:00
kristerw
81d15a073e GCC 2 does not understand the MMX asm core. Fall back to the C source
for GCC 2.
2005-01-12 22:58:19 +00:00
drochner
1031ae2e10 The "+" constraint modifier was yoo much. While it seems correct to me, it
caused gcc complaints in some cases. Pointed out by Nicolas Joly.
PR pkg/28882 should be fixed now.
2005-01-06 16:32:01 +00:00
drochner
9711cbfc62 tighten an inline asm constraint for amd64 2005-01-06 12:25:23 +00:00
adam
f94bbda334 Changes 1.2.8:
* Fixed compiling under newer versions of gcc
* Fixed floating point exception with Linux 2.6 joysticks
* Added 4/6 channel surround sound support on ALSA (not 3D audio)
* Fixed mouse coordinate inversion on MacOS X
* Added a CoreAudio sound driver for MacOS X
* Added MacOS X Xcode build environment support
* Updated QNX support for QNX6
* Improved Atari port, including OSMesa support
* Numerous other bug fixes and platform support improvements
2005-01-05 12:05:19 +00:00
dillo
a0e044de84 Reduce audio delay in the *BSD audio driver (by configuring audio
device with shorter block size and lower water marks).
PKGREVISION++
2004-07-26 20:42:27 +00:00
wiz
207ea645b6 Patch to make audio work on IRIX 5, from Georg Schwarz. 2004-07-19 10:48:46 +00:00
kristerw
c192ecf95f Make this package build on NetBSD ports that do not have
<machine/joystick.h>.
2004-07-13 20:51:58 +00:00
drochner
9a99283870 apply some patches from SDL CVS which fix inline assembler to compile
with gcc-3.4.x
left out a part which requires support for the "named parameter"
syntax which is not present on NetBSD-1.6.x/gcc-2.95.x
This is obviously not needed because the real variable names and
the abstract parameter names are identical.
(see PR pkg/25855 by John R. Shannon for details)
The next SDL release will probably require to install gcc-3.3.x
on NetBSD-1.6.x.
2004-07-09 18:19:09 +00:00
dillo
e815167d6c fix HATs on USB joysticks that don't report up as 0.
bump PKGREVISION
2004-06-22 09:10:12 +00:00
dillo
a4c6706b7f USB joystick: number axes in usual order (X, Y, ...), not in order
returned by device.  Makes joysticks that return Z before X usable.
2004-06-05 14:04:21 +00:00
snj
c1f46e5893 Update to SDL-1.2.7.
Changes:
* SDL no longer sets a fatal signal handler for SIGPIPE
* Fixed modifier key state on MacOS X
* Added support for remote XVideo
* Fixed static linking on MacOS X
* Fixed compiling with broken Linux 2.6 headers
* Fixed mouse cursor visibility and focus events on MacOS X
* Added support for /dev/joy* on Free/Net/OpenBSD
* Fixed problems with CD-ROM audio playback on MacOS X 10.1
* Added dynamic GL library loading to MacOS Carbon support
* Added function to create RWops from const memory: SDL_RWFromConstMem()
* Fixed build problems with newer versions of automake
* Fixed MacOS X libtool framework support
* Added CPU feature detection functions to SDL_cpuinfo.h
* Fixed illegal instruction crash using 3DNow on Intel processors
* Fixed asm issues with mmx.h and gcc 3.3
* Fixed crash calling app defined window proc
* Fixed long long constant warnings in GCC 3.3.1
* Fixed joystick open problems on BSD
* Fixed X11 mode line crash with only one video mode

Fixes PR pkg/22462.

Okayed by wiz@.
2004-04-17 00:15:21 +00:00
recht
b4dc7ac829 replace the SDL mmx gcc3 compile-fix with the one that went into
SDL CVS
provided by Stephane Marchesin
2004-01-10 13:57:12 +00:00