Code Monkey home page Code Monkey logo

sdl2's People

Contributors

afwlehmann avatar alpmestan avatar ekmett avatar nkpart avatar ocharles avatar polarina avatar tempname11 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

ekmett

sdl2's Issues

Merging hsSDL2 into sdl2

Hi there,

Couple points:

  • This package (sdl2) serves nicely as the low-level binding to SDL2.
  • The package hsSDL2 attempts to be a high-level API a la the SDL package on hackage.

It seems in the best interest of everyone to just bring both under one package. In #haskell-game we were wondering whether it's possible to merge hsSDL2 into the sdl2 package. Then the budding Haskell game programmer doesn't have to hunt around or rely on community knowledge, she can just write:

$ cabal install sdl2

And away they go. And we can all focus our efforts on polishing one single high-quality package. We could possibly put everything under https://github.com/haskell-game and then add us all as members.

For a simple straw man to debate, I'll propose:

  • The low-level bindings become:

    Graphics.UI.SDL.Base.*
    
  • The high-level bindings become

    Graphics.UI.SDL
    

The high-level ones can depend upon the low-level ones by importing *.Base.*.

What are your thoughts? If it would sway people's opinion, I'd be willing to put the initial work in one a merge of these two packages on some haskell-game/sdl2 or so.

Pinging also contributors to hsSDL2 for whom this will be of interest: @ocharles @lemmih @jdeseno @osa1 @pupeno @elliottt @Drezil @z0w0 @albertfong @codekitchen @cjay @simonmichael @tcsavage @rhymoid @ericnething @sshilovsky @joelburget @chrra @Peaker @cmears @ghorn @EdwardK

Missing "clipboard update" event

I just emailed you this, but I found this repo afterward so I'll just repost it here:

My executable using sdl2 crashes with the following message:

sdl-canvas: Unknown type 2304 for SDL_Event

I looked this up in the SDL v2.0.3 source, and on line 131 of SDL_events.h I found the following:

/* Clipboard events */
SDL_CLIPBOARDUPDATE = 0x900, /**< The clipboard changed */

0x900 is 2304, so this appears to be the missing event type.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.