Package org.yajsdl.jna

Examples of org.yajsdl.jna.SDL_Event$ByReference


    /**
     *
     */
    @Override
    public SDL_Event toSource() {
        return new SDL_Event( this.content_ );
    }
View Full Code Here


     * @return
     */
    protected SDLEvent baseWaitEvent() {
        int ret;
        SDLEvent ret_event = null;
        SDL_Event sdl_event = new SDL_Event();
        Pointer holder = sdl_event.getPointer();

        ret = SDLLibrary.INSTANCE.SDL_WaitEvent( holder );
        if ( ret == 1 ) {
            ret_event = SDLEvent.create( sdl_event );
        } else if ( ret == 0 ) {
View Full Code Here

     * @return
     */
    protected SDLEvent basePollEvent() {
        int ret;
        SDLEvent ret_event;
        SDL_Event sdl_event = new SDL_Event();
        Pointer holder = sdl_event.getPointer();

        ret = SDLLibrary.INSTANCE.SDL_PollEvent( holder );
        /*
         * ret が 1 の場合、sdl_event は呼びだす前と呼び出す後ではなにか変化があるはず。
         */
 
View Full Code Here

    /**
     *
     */
    @Override
    public SDL_Event toSource() {
        return new SDL_Event( (byte)SDLLibrary.SDL_EventType.SDL_QUIT );
    }
View Full Code Here

TOP

Related Classes of org.yajsdl.jna.SDL_Event$ByReference

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.