Re: Help

new topic     » goto parent     » topic index » view thread      » older message » newer message

Asif Masood Baloch wrote:

> Dear Coders,
>
> I tried making the mouse available in graphics_mode but i failed and i knew I
> would cuz i started using EU few days back. I am so fascinated that i want to
> learn it and try all that i could. I read the ".e" file and went through lines of
> code and was able to understand a few lines. I know it would sound silly what i
> copied from the mouse.e file but i tried it anyways cuz i thought maybe it would
> work and the pointer would be seen running as i move the mouse on the pad.
> So, what is the legal way to do it?
>
> include mouse.e         --For mouse availibility, I tried, Phew!
> include graphics.e      --For graphics mode 640x480 with 16 colors
> clear_screen()          --Would be good
> object kyo
> kyo = graphics_mode(18)
> position(7,29)          --For text position
> puts(1, "Lets see how it works. ;)")
> constant M_GET_MOUSE = 14       --Have no idea what i am doing.
>   M_MOUSE_EVENTS = 15    --Saw this in mouse.e file and
>   M_MOUSE_POINTER = 25   --thought it would do
> global function get_mouse()     --No idea what im doing
> return machine_function(M_GET_MOUSE, 0) -- No idea
> end function        --Oh dear, still no idea.
>
> Best wished for all coders
>
> -Asif
>
>   ------------------------------------------------------------------------
>                Name: FILE.HTM
>    FILE.HTM    Type: Hypertext Markup Language (text/html)
>            Encoding: 7bit

You don't need to redefine get_mouse etc. Just include mouse.e.

Jeff Fielding

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu