custom app cursors

Home Forums Monkey 2 Programming Help custom app cursors

This topic contains 2 replies, has 3 voices, and was last updated by  nerobot 2 months, 1 week ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #3499

    AdamStrange
    Participant

    Is this possible.

    Something like App.SetCursor( path ) ?

    or

    cursor := loadcursor( path )

    app.cursor = cursor

     

    ??

    #3500

    degac
    Participant

    Hi
    again SDL ‘supports’ both pre-coded cursor than user defined one.
    MX2 source code has some references – Struct SDL_CURSOR,SDL_SYSTEM_CURSOR, the external function to create on-the-way via UTF8String a cursor – SDL_CreateCursor:SDL_Cursor Ptr(data_:Utf8String,mask_:Utf8String,w_:Int,h_:Int,hot_x_:Int,hot_y_:Int) – and so on.
    It will be useful to have the possibility to change the cursor – using the default alternative (ARROW, WAIT, HAND etc…)
    I think it’s better Mark decides (or asks) what put/change/add in these core modules.

    https://wiki.libsdl.org/SDL_CreateCursor

    ps: I suppose Emscripten handles this (and other things like Events) in a different way. Not really clear at the moment…

    #10439

    nerobot
    Participant
Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.